Skip to content

Instantly share code, notes, and snippets.

@tiste
Last active August 29, 2015 14:01
Show Gist options
  • Save tiste/c117392d037c2c7d8818 to your computer and use it in GitHub Desktop.
Save tiste/c117392d037c2c7d8818 to your computer and use it in GitHub Desktop.
Setup Capistrano 3
cap install
cap production deploy:check
cap production nginx:setup
cap production nginx:reload
cap production unicorn:setup_initializer
cap production unicorn:setup_app_config

Then cap production deploy and on the server side (for the first time):

cd /path/to/app/current
RAILS_ENV=production bundle exec unicorn -D -c /path/to/app/shared/config/unicorn.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment