Last active
February 23, 2017 07:05
-
-
Save koobitor/613eb9ea14957e77577a2c6410fe52a0 to your computer and use it in GitHub Desktop.
Ruby Note
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
| # Create New Application | |
| rails new <project-name> | |
| rails new <project-name> --api | |
| rails new <project-name> --database=postgresql | |
| # Bundle | |
| bundle install | |
| # Gem | |
| gem install <gem-name> | |
| # Rails Generate | |
| rails g | |
| rails generate scaffold bookmark title:string url:string | |
| # Rake | |
| rake db:create | |
| rake db:migrate | |
| # Puma | |
| bundle exec pumactl -F config/puma.rb start | |
| bundle exec pumactl -F config/puma.rb stop | |
| bundle exec pumactl -F config/puma.rb restart | |
| bundle exec pumactl -F config/puma.rb status | |
| # Production | |
| RAILS_ENV=production |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment