new_release_path

Generate the new release path name.

Configuration

Optionally a suffix could be added to the release path.

For this set the environment variable BUILD_TAG to enable this suffix. If the suffix is enabled, JOB_NAME and BUILD_NUMBER

Capistrano Default

$ cap dev deploy

will use the default releases-folder: /var/www/your-domain/releases/

$ cap dev deploy:new_release_path

= /var/www/your-domain/releases/20160610T1303-42/

or

$ BUILD_TAG=1 JOB_NAME=foo BUILD_NUMBER=bar cap dev deploy:new_release_path

= /var/www/your-domain/releases/20160610T1421-84/

failed

Handle deployment errors

Capistrano revert the bad code and redeploy, when a failed deployment situations. …

cleanup_rollback

Remove and archive rolled-back release.

fail

This task simulates a failing deployments. It is used for the tests - especially for testing the Rollback Manager.

Configuration

There is nothing to configure, the task simply raises an exception.

Usage

Example usage:

$ cap dev deploy:fail

Output

A console output that the deployment has failed.

Search Results powered by Algolia Search