Skip to content

Instantly share code, notes, and snippets.

@jamesfwz
Created July 18, 2014 06:35
Show Gist options
  • Save jamesfwz/c4914ec8e970f75259c5 to your computer and use it in GitHub Desktop.
Save jamesfwz/c4914ec8e970f75259c5 to your computer and use it in GitHub Desktop.
SETUP RAILS
# .ruby-gemset
projectname
# .ruby-version
ruby-2.1.2
# Gemfile
source 'https://rubygems.org'
cd ..
cd projectname
# Install bundler
gem install bundler
# Install Rails gem
gem install rails --version 4.1.4 --no-ri --no-rdoc
rails -v
rvm gemset list
gem update
# gem install rails
rails new .
#setup Github
git init
$ git add .
$ git commit -m 'initial commit'
git status
ssh -T -p 443 [email protected]
# You have to wait within 1 day to access to github
#bundle pg fail:
gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment