Skip to content

Instantly share code, notes, and snippets.

@luisdalmolin
Last active August 11, 2022 14:26
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save luisdalmolin/66cae887fe655491c5cad413d544f434 to your computer and use it in GitHub Desktop.
Save luisdalmolin/66cae887fe655491c5cad413d544f434 to your computer and use it in GitHub Desktop.
GIT Hook Post Receive
#!/bin/sh
# OBS: Se você estiver na Locaweb, vai precisar
# trocar o 'php' por '/usr/bin/php56'
GIT_WORK_TREE=/home/[usuario-ftp]/apps/seusite.com git checkout -f
cd /home/[usuario-ftp]/apps/seusite.com
#php artisan clear-compiled
#php artisan optimize
#php artisan migrate --force
#php artisan asset:dist
#php artisan config:cache
#php artisan route:cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment