Skip to content

Instantly share code, notes, and snippets.

@heqiao
Created August 28, 2013 03:24
Show Gist options
  • Save heqiao/6361830 to your computer and use it in GitHub Desktop.
Save heqiao/6361830 to your computer and use it in GitHub Desktop.
Map-project Setup
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