After a successful deployment, your deployment is considerd a release and is Amezmo keeps your last 4 releases.
Amezmo defines a release "Rollback" as changing the active release to a previous release. Rolling back your current release to a previous release does not trigger a new deployment. A rollback is an atomic operation. Your web application will begin serving files from your previous release immediately. Your workers are also reloaded after your symbolc link is updated. See below for the list of hooks Amezmo will look for when you execute a rollback operation.
Upon rolling back your current release, Amezmo will execute the following scripts:
This script is executed before updates your
This script is executed after the symbolic link directory is updated.
Note: The scripts that are executed are the scripts defined in your current release. This means that when you execute a rollback, the scripts that will run are the ones that exist in your current release directory, not the target rollback.
At this time, you can have 4 releases. Amezmo keeps your last 4 most recent releases.