Created
June 24, 2025 10:27
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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