Skip to content

Instantly share code, notes, and snippets.

@callmesangio
Created June 24, 2025 10:27
Show Gist options
  • Select an option

  • Save callmesangio/78c566df6d316210711384dfc4383d5d to your computer and use it in GitHub Desktop.

Select an option

Save callmesangio/78c566df6d316210711384dfc4383d5d to your computer and use it in GitHub Desktop.
Helper script to bootstrap a new Rails project with `default_install_uses_path` Bundler option turned on.
#!/bin/bash
set -e
bundle init
bundle add rails --quiet
echo 'Done.'
railsnew='bundle exec rails new . --database=postgresql -f'
gum confirm "Proceed with \`$railsnew\`?" \
--default=false \
--show-output \
--no-show-help \
&& $railsnew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment