Typical deployment steps

Imagine that you have a medium-sized web application deployed on a single web server. Git has been chosen as the version control and collaboration tool. A central repository that is shared with all users has been created in the form of a bare Git tree.

Let's assume that your production server has been fully set up. When you run your Fabric deployment command, say, fab deploy, the following scripted sequence of actions take place:

  1. Runs all tests locally
  2. Commits all local changes to Git
  3. Pushes to a remote central Git repository
  4. Resolves merge conflicts, if any
  5. Collects the static files (CSS, images)
  6. Copies the static files to the static file server
  7. At the remote host, pulls changes from a central Git repository
  8. At ...

Get Django Design Patterns and Best Practices - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.