Created
January 1, 2013 01:20
-
-
Save formigarafa/4424525 to your computer and use it in GitHub Desktop.
Basic script to create a rails app encapsuled in a gemset. this script creates a gemset with the same name as the app, installs rails gem for this gemset, creates the app, add a .rvmrc and add .rvmrc into .gitignore file.
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
RUBY_VERSION=1.9.3 | |
APP_NAME=that_great_app | |
rvm $RUBY_VERSION@$APP_NAME --create && gem install rails --no-ri --no-rdoc && rails new $APP_NAME -d mysql && echo "rvm $RUBY_VERSION@$APP_NAME" > $APP_NAME/.rvmrc && echo ".rvmrc" >> $APP_NAME/.gitignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment