Versions Compared

Key

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

...

  • featureserver_test_library_cornell_edu
    • .git
    • .gitignore
    • README.txt
    • backup/ - place for backup files
    • drupal_config/ - a place for Drupal make file and module lists
    • private_files/ - point Drupal's private file directory at this directory (later)
    • public/ - put your Drupal site here (later)

...

Now the directory looks like this:

...

Code Block

.
├── .git
│   ├── COMMIT_EDITMSG
│   ├── HEAD
│   ├── branches
│   ├── config
│   ├── description
│   ├── hooks
│   ├── index
│   ├── info
│   ├── logs
│   ├── objects
│   └── refs
├── .gitignore
├── Capfile
├── README.txt
├── backup
│   └── README.txt
├── config
│   └── deploy.rb
├── drupal_config
│   └── README.txt
├── private_files
│   └── README.txt
└── public

...

  • deploy.rb

...

  • Change the default deploy.rb to add stages (eg. staging, production) and add a deploy directory containing a file for each stage.
  • featureserver_test_library_cornell_edu
    • .git
    • .gitignore
    • Capfile
    • config
      • deploy
        • staging.rb
        • production.rb
      • deploy.rb
    • README.txt
    • backup/ - place for backup files
    • private_files/ - point Drupal's private file directory at this directory (later)
    • public/ - put your Drupal site here (later)

...

  • push a tag for this release to git
  • do a backup of the staging db (with the staging site offline)
  • update the staging server's clone of your git repo
  • check out all the stuff from the local git repo to a revision directory on staging
  • change the 'current' symbolic link to point to the public directory inside new revision directory
  • update symbolic links from the revision directory's public/sites/default/files
  • put the site offline
  • update the site's public, private, and temp files paths
  • run update.php
  • revert any features
  • put the site back online

References

http://www.58bits.com/blog/2013/03/23/deploying-drupal-with-capistranoImage Removed

http://previousnext.com.au/blog/simple-and-powerful-drupal-site-deployment-capistranoImage Removed

http://www.metaltoad.com/blog/capistrano-drupal-deployments-made-easy-part-1Image Removed

http://www.zodiacmedia.co.uk/blog/professional-deployment-of-websites-using-capistrano-part-2

https://github.com/capistrano/capistrano/wiki/2.x-Default-Deployment-BehaviourImage Removed

https://github.com/czettnersandor/drupal-capImage Removed

http://www.simonecarletti.com/blog/2009/09/capistrano-file-transfer-actions/Image Removed