Skip to content

How it works

bruno- edited this page Oct 3, 2014 · 1 revision

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.
Clone this wiki locally