Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. follow the steps in "Prepare the site for deployment"
  2. deploy to the staging server (victoria02) , or
    Code Block
    cap deploy
    
  3. or deploy to the production server (victoria01 or victoria03)
    Code Block
    cap production deploy
    

What this does is clones the git repo to the target machine, moves all the site code to a timestamped directory there, updates a symbolic link pointing the document root at the new code, does the Drupal update.php procedure, reverts all features, enables all the modules enabled in the dev site, clears the cache, and a few other Drupal things. It makes a snapshot of the Drupal database before all this, but leaves the target database intact (except for the module updates), so the target site's new content is preserved.

Update Drupal modules

Update Drupal core & modules

...

Prepare a new site on a remote machine

Update cul_capistrano

Undo a site deploy