Skip to content

Instantly share code, notes, and snippets.

@JeffCohen
Last active August 29, 2015 13:56
Show Gist options
  • Save JeffCohen/8968503 to your computer and use it in GitHub Desktop.
Save JeffCohen/8968503 to your computer and use it in GitHub Desktop.
Deployment Checklist

Checklist for First-Time Deployment on VPS

One-Time: Local

  1. Gemfile: mysql2
  2. exception notification
  3. env var for rails secret token
  4. seeds file
  5. green tests

One-Time: Server

  1. create mysql db for app
  2. create mysql username and password for app
  3. env vars for db authentication
  4. production.yml
  5. deploy script
  6. log file rotation
  7. db backup script
  8. gem install passenger; passenger-install-nginx
  9. config passenger

First Time

  1. rake assets:precompile
  2. rake db:migrate
  3. rake db:seed
  4. touch tmp/restart.txt

Every Time

  1. backup db
  2. rake assets:precompile
  3. rake db:migrate
  4. touch tmp/restart.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment