-
-
Save jamesfwz/c4914ec8e970f75259c5 to your computer and use it in GitHub Desktop.
SETUP RAILS
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-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