Created
September 11, 2014 06:41
-
-
Save z-ohnami/97fcf5ce8971472f1f18 to your computer and use it in GitHub Desktop.
ruby&rails command memo
This file contains 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
#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