Skip to content

sanguis/drupal-beanstalk-post-deployment-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

drupal-beanstalk-deplymentscripts

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

Installation

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%

Usage

To use the keyword bellow to trigger the drush actions.

Command Flags

-l log file location. defaults to ~/.beanstalk.log -a alias. specify a drush alais or prefix for deployment

Commit flags

-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

TODO

  • 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages