to be used with Beanstak in the script section, to trigger various Drush functions via commits messages or beanstalkj deploy comments. Also it keeps a log of Beanstalk deplyments on the server. Developed for @Knectar
add the bellow to the deployments scripts section to run
curl https://raw.githubusercontent.com/sanguis/drupal-beanstalk-post-deployment-scripts/master/development.sh > /tmp/%USER_NAME%-%REVISION%.sh
bash /tmp/%USER_NAME%-%REVISION%.sh "%COMMENT%" %REVISION% %USER_NAME%
To use the keyword bellow to trigger the drush actions.
-l log file location. defaults to ~/.beanstalk.log -a alias. specify a drush alais or prefix for deployment
-dbdump-
drush sql-dump > /tmp/$DATE-bs-dump.sql
-updb-
drush -y updb
-fra-
drush -y fra
-bigups-
drush -y updb
drush -y fra
drush cc all
-cc_all-
drush cc all
-cc_cssjs-
drush cc css-js
-cc_block-
drush cc block
-rp- to rebuild Drupal permissions
drush php-eval 'node_access_rebuild();'
-cron-
drush cron
- change clear cache function to be -cc_CACHETYPE- and have it default to cc all but be able to use all of the cache clear types and just read the entry for the %comment% var.