Skip to content

Instantly share code, notes, and snippets.

@formigarafa
Created January 1, 2013 01:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save formigarafa/4424525 to your computer and use it in GitHub Desktop.
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.
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