Skip to content

Instantly share code, notes, and snippets.

@crazyrohila
Created August 14, 2013 07:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crazyrohila/6228762 to your computer and use it in GitHub Desktop.
Save crazyrohila/6228762 to your computer and use it in GitHub Desktop.
A lazy man's drupal deploy script.
<?php
exec('git pull && drush cc all', $output);
/**
* Pull from specific branch.
* eg. exec('git pull origin <branchname> && drush cc all', $output);
*/
print_r($output);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment