Skip to content

Instantly share code, notes, and snippets.

@scottrobertson
Created July 13, 2013 08:51
Show Gist options
  • Save scottrobertson/5990034 to your computer and use it in GitHub Desktop.
Save scottrobertson/5990034 to your computer and use it in GitHub Desktop.
Simple post-receive hook for git deployment, with composer update.
#!/bin/sh
WORKING_DIR=/var/www/site;
GIT_WORK_TREE=$WORKING_DIR git checkout -f;
cd $WORKING_DIR && composer update -o;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment