Skip to content

Instantly share code, notes, and snippets.

@jhedstrom
Created April 13, 2012 19:45
Show Gist options
  • Save jhedstrom/2379589 to your computer and use it in GitHub Desktop.
Save jhedstrom/2379589 to your computer and use it in GitHub Desktop.
Drush Deploy with a make file
$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