class Origen::Application::Deployer

This class manages deploying an application’s website.

The web pages are compiled in the local application workspace and deploy consists of copying them to the remote location.

Two directories are maintained in the remote location, one containing the live website and another where the new site is copied to during a deploy. A symlink is used to indicate which one of the two directories is currently being served.

Upon a successful copy the symlink is switched over, thereby providing zero-downtime deploys and guaranteeing that the old site will stay up if an error is encountered during a deploy.

An alternative method of deploying is also supported by pushing to a Git repository.