How it works - capistrano-plugins/capistrano-unicorn-nginx GitHub Wiki

This page contains a list of plugin tasks and their brief description. If you want to learn more about what happens "under the hood" this is the place to start.

This is not a "required read" though, as the Usage pages should get you covered.

Capistrano setup task

Tasks that execute when you run bundle exec cap production setup.

Nginx

  • nginx:setup
    Generates and uploads nginx config file to web node. Symlinks config file to /etc/nginx/sites-enabled.
  • nginx:setup_ssl
    Performs SSL related tasks if nginx_use_ssl is true (false by default).

Unicorn

  • unicorn:setup_initializer
    Uploads unicorn initializer file.
  • unicorn:setup_app_config
    Generates unicorn application config file

Capistrano deploy task

Tasks that execute when you run $ bundle exec cap production deploy:

  • after :publishing, "nginx:reload"
    Reloads nginx.
  • after :publishing, "unicorn:restart"
    Restarts unicorn after new release.
⚠️ **GitHub.com Fallback** ⚠️