Technical information on this site may be out of date : no updates since 2015
script to email git log as part of a dev deploy
This script makes sure the dev site is clean, emails a log summary of updates about to be applied, updates the site and emails me so I know what changed.
I’m using this on a dev site which is periodically updated to the latest master for testing.
Log output of a script to a file
Nice bit of bash fu I discovered today
Add this snippet to the top of scripts and the output of lines below will be tee’d to a logfile.
Handy for those scripts you always want a log of
verbose remote ssh (with echo)
I usually manage website deployment with bash scripts that run remote commands on the servers
In order that I can see what is going on and debug any errors verbose output is useful.
Running “bash -ex” causes each line to be output as it progresses and halt on any error so that you don’t miss it.
within the remote command “set -x” cause bash to echo all commands
Drush "tput: No value for $TERM and no -T specified"
The drush script which provides command line access to drupal functionality emits an error message when run as a cron job
tput: No value for $TERM and no -T specified