Created
November 1, 2012 10:26
-
-
Save petercossey/3992955 to your computer and use it in GitHub Desktop.
Drupal Deployment Notes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Drupal Deployment using Drush | |
| ============================= | |
| Deploying a Drupal site means transporting a codebase to a target host and installing the site using a database. | |
| Concepts: | |
| - Build: build a codebase and all the dependencies | |
| - Deploy: transport the codebase onto a remote machine | |
| - Install: Install the software | |
| - Migrate (borrowed from Aegir): Migrate an existing database into a new codebase. | |
| - Re-configure web server: ? | |
| Assumptions: | |
| - All hosts have equivalent versions of Drush. | |
| Build and Deploy Combined | |
| ------------------------- | |
| Building a Drupal project which uses an installation profile involves the following information and steps. | |
| Requirements: | |
| - Build file (buildfile): a hosted (distro) make file available over the internet that can be used to build the entire project. | |
| - Host (targethost): the host machine where the codebase is going to get built. | |
| - Path (targetpath): the path where the project is going to get built. | |
| Method: | |
| // ssh to the targethost | |
| $ drush make --prepare-install buildfile targetpath | |
| // goto install | |
| Install | |
| ------- | |
| dbuser_target = root | |
| dbpass_target = rootpass | |
| dbhost_target = localhost | |
| db_target = existingdb | |
| $ cd targetpath | |
| $ drush si --db-url="mysql://dbuser_target:dbpass_target@dbhost_target/db_target | |
| // goto configure webserver | |
| Re-configure Web Server | |
| ----------------------- | |
| wwwroot = /path/to/wwwroot | |
| release_target = /path/to/release | |
| // delete wwwroot if it exists | |
| $ ln -s /path/to/release /path/to/wwwroot | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment