The devshop/deploy
component lets Composer-based app developers define
what happens to their code during deployment across environments, and allows
them to control what stages are run in each environment.
The component defines a standard set of named "stages" that code goes through during the development life cycle. Each stage is a list of commands that can be pre-defined for standard projects like Drupal or Wordpress, or defined in a per-project or per-environment basis.
Finally, the component provides a command called deploy
that runs the desired
stages for that environment.
git
: The commands to clone the source code (or ensure it's already there) and check out the desired version.build
: The commands to run to prepare the source code, such ascomposer install
ornpm install
.install
: The commands to run to prepare your application once all code and services are ready, such asdrush site:install
ordrush site:import ~/backups/site.sql
. (Normally skipped in "prod" environments.)deploy
: The commands to run immediately after new code and services are ready, such asdrush updb -y && drush cr all
Test
: The commands to test a running site.
Jon Pugh