Skip to content

Instantly share code, notes, and snippets.

@z-ohnami
Created September 11, 2014 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save z-ohnami/97fcf5ce8971472f1f18 to your computer and use it in GitHub Desktop.
Save z-ohnami/97fcf5ce8971472f1f18 to your computer and use it in GitHub Desktop.
ruby&rails command memo
#gem
gem install rails --no-ri --no-rdoc
#rvm
\curl -sSL https://get.rvm.io | sudo bash -s stable
sudo usermod -a -G rvm root
sudo gpasswd -a vagrant rvm
sudo gpasswd -a apache rvm
source /etc/profile.d/rvm.sh
sudo cat /etc/passwd
sudo gpasswd -a apache rvm
sudo gpasswd -a apache2 rvm
view /etc/apache2/apache2.conf
rvm get head
rvm requirements
rvm install 2.1.2
rvm use 2.1.2 --default
rvm list
#rails
rails new myapp
bundle install
rails s
rails g model Project title
rake db:migrate
rails g controller Projects
rake routes
rails g model Task title done:boolean project:references
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment