Created
April 13, 2012 19:45
-
-
Save jhedstrom/2379589 to your computer and use it in GitHub Desktop.
Drush Deploy with a make file
This file contains 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
$options['before']['deploy-symlink'][] = 'run_rebuild_task'; | |
/** | |
* Run rebuild.sh. | |
* @task | |
*/ | |
function run_rebuild_task($d) { | |
$d->run('cd %s/app && ./rebuild.sh', $d->release_path); | |
$d->run('ln -s %s/settings.php %s/sites/default/settings.php', $d->shared_path, $d->latest_release()); | |
$d->run('ln -s %s/files %s/sites/default/files', $d->shared_path, $d->latest_release()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment