Commit ed267401 authored by Colan Schwartz's avatar Colan Schwartz

Added pointer to the latest log file in the Dev code deployment script.

parent 9a18162b
......@@ -29,6 +29,7 @@ MAILTO="someone@example.com"
# Set log file.
LOGFILE="/var/log/deployments/$(date +%FT%T)"
LATEST="/var/log/deployments/latest"
# Set the development branch.
BRANCH=dev
......@@ -44,6 +45,7 @@ DRUSH=/usr/bin/drush
GIT=/usr/bin/git
ECHO=/bin/echo
UMASK=umask
LN=/bin/ln
## Configuration section END ################################################
......@@ -101,3 +103,6 @@ ssh $VARNISH varnishadm "ban req.url \~ /"
$ECHO "All done!"
} >& $LOGFILE
# Set a pointer to the latest log file.
$LN -sf $LOGFILE $LATEST
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment