Last active
October 4, 2015 19:47
-
-
Save tinderfields/2688605 to your computer and use it in GitHub Desktop.
Setup a new rails project using rvm and git
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
# 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