Last active
August 29, 2015 14:14
-
-
Save nosolopau/df836caf43bbaa6a0512 to your computer and use it in GitHub Desktop.
Create a rails application into current directory with specific rbenv and rails version
This file contains 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 | |
# Rails new utility | |
# Usage: rails_new ruby_version rails_version | |
echo "$1" > .ruby-version | |
echo "source 'https://rubygems.org'" > Gemfile | |
echo "gem 'rails', '$2'" >> Gemfile | |
bundle install | |
bundle exec rails new . --force --skip-bundle --skip-active-record | |
bundle update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run with (copy the whole line):