Created
August 28, 2013 03:24
-
-
Save heqiao/6361830 to your computer and use it in GitHub Desktop.
Map-project Setup
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
1.sudo apt-get remove dmraid //When cannot find the disk | |
2.rvm --default use ruby-1.9.3 //Set default ruby to avoid rvm use ruby every time booting terminal | |
3.Js Runtime error: | |
In your Gem file, write | |
gem 'execjs' | |
gem 'therubyracer' | |
and then run | |
bundle install | |
4. install node.js | |
sudo apt-get install python-software-properties python g++ make | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs | |
5. postgresql version | |
psql --version | |
6. rails new [project name] -d postgresql | |
rake db:migrate | |
rails s | |
7. jobs | |
show all the back program | |
8. kill | |
kill % kill the first program | |
9 rake routes | |
show all the url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment