Skip to content

Instantly share code, notes, and snippets.

@koobitor
Last active February 23, 2017 07:05
Show Gist options
  • Select an option

  • Save koobitor/613eb9ea14957e77577a2c6410fe52a0 to your computer and use it in GitHub Desktop.

Select an option

Save koobitor/613eb9ea14957e77577a2c6410fe52a0 to your computer and use it in GitHub Desktop.
Ruby Note
# 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