Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@christophengelmayer
Created January 7, 2017 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christophengelmayer/ea0736e254410c95e66f1ba0509d6bc3 to your computer and use it in GitHub Desktop.
Save christophengelmayer/ea0736e254410c95e66f1ba0509d6bc3 to your computer and use it in GitHub Desktop.
Makefile Laravel deployment
rsync:
rsync -avzu --delete --progress -h \
--exclude 'Makefile' \
--exclude '.git' \
--exclude '/.env' \
--exclude '/public/.htaccess' \
--exclude '/database/database.sqlite' \
--exclude '/public/storage' \
--exclude '/bootstrap/cache' \
--exclude 'storage/framework/*' \
--exclude 'storage/logs' \
--exclude '/vendor' \
--exclude '/node_modules' \
--exclude '/resources/assets' \
. {{SERVER}}:{{PATH}}
composer:
ssh {{SERVER}} '(cd {{PATH}} && composer update)'
migrate:
ssh {{SERVER}} '(cd {{PATH}} && php artisan migrate -n --force)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment