Skip to content

Instantly share code, notes, and snippets.

@tinderfields
Last active October 4, 2015 19:47
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 tinderfields/2688605 to your computer and use it in GitHub Desktop.
Save tinderfields/2688605 to your computer and use it in GitHub Desktop.
Setup a new rails project using rvm and git
# Upgrade RVM
rvm get stable
# Get latest Ruby
rvm install 2.1.0
# Create and use gemset
mkdir project
cd project
rvm --ruby-version --create use 2.1.0@swapper_scraper
# Install Rails (if you want 4 beta add --version 4.0.0.beta1 --no-ri --no-rdoc)
gem install rails
# Create project
cd ..
rails new project --database=postgresql --skip-test-unit --no-rc
cd -
# Add to git
git init .
git add .
git commit -m "rails new project --database=postgresql --skip-test-unit --no-rc"
#Change timezone
rake time:zones:local
#Edit config/application.rb and set timezone
git commit -a -m "Change timezone"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment