Procedures for rollout
# Switch to the production site directory cd /works/railsapps/ggkbase # Put the web server to maintenance RAILS_ENV=production bundle exec rake web:disable # Check out new code # git stash might be needed git checkout master git pull origin master # hopefully, there is no conflict! # Update ruby gems bundle update # database migration RAILS_ENV=production bundle exec rake db:migrate # Precompile assets RAILS_ENV=production bundle exec rake assets:precompile # Put the web server to maintenance RAILS_ENV=production bundle exec rake web:enable
Procedures for after rollout
Check in the error log