How to Deploy Security Updates to Drupal 7 Site through Kraftwagen
Kraftwagen is an Open Source deployment tool that is built entirely on top of Drush. Kraftwagen makes Drupal “easy to use” for developers, who customize Drupal extensively, need staged deployments, and use version control systems to collaborate. It provides a set of commands for 'drush make' based Drupal development workflow.Benefits of using Kraftwagen for security updates
By using Kraftwagen to deploy security updates, the benefits are multifold, which include
- Kraftwagen stores configuration as code in version control as opposed to other methods which store it in a database.
- No need of copying files to project instead refer to external code resources (Drupal core, contrib modules and external libraries). This means that your project repository is very slim.
- Effective single command deployment to multiple deploy targets (Development, Staging, Production).
Deploying Security Updates to Drupal 7 Site
Usually deploying security updates to Drupal 7 project can be a painful process. Basic Drupal 7 site update workflow is as follows:
- Backup database.
- Backup codebase.
- Download newer version of modules or make use of drush command drush up.
- Manually investigate if the modules have been hacked or patched.
- Then for database changes, run update.php in browser.
But with Kraftwagen this whole process becomes easier. All Drupal 7 core and contrib projects are saved by just version number in a .make file. Everything will be downloaded at the time of site building. This itself makes updating process easier since we only need to update version number in our .make file and rebuild the site.
Steps to Deploy using Kraftwagen
- Update version number in .make file.
- Build site using command drush kw-build.
So it is very evident that deployment to a Drupal 7 site through Kraftwagen put developers at ease with an otherwise hectic process. This is for more serious developers who crave for some single trigger deployment unlike other file transfer or dashboard based deploy environment. Deploying with Kraftwagen helps keep your git repo simple and slim.