Skip to content

Instantly share code, notes, and snippets.

@r15ch13
Created November 16, 2012 22:19
Show Gist options
  • Save r15ch13/4091412 to your computer and use it in GitHub Desktop.
Save r15ch13/4091412 to your computer and use it in GitHub Desktop.
Laravel Git Deployment
#!/bin/sh
#
# An example hook script to prepare a packed repository for use over
# dumb transports.
#
# To enable this hook, rename this file to "post-update".
echo
echo "**** Pulling changes into Live [Hub's post-update hook]"
echo
cd ../project || exit
unset GIT_DIR
git pull hub master
rm -f storage/cache/*
rm -f storage/views/*
chmod -R 777 storage
php artisan migrate
exec git-update-server-info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment