Last active
September 24, 2018 11:32
-
-
Save sergix44/4da0ba1de97a85bf9078a7a0c95ef054 to your computer and use it in GitHub Desktop.
Laravel deploy script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Laravel deploy script | |
PHP_PATH=php | |
$PHP_PATH artisan down | |
$PHP_PATH composer.phar install --no-dev | |
$PHP_PATH artisan cache:clear | |
$PHP_PATH artisan config:cache | |
$PHP_PATH artisan route:cache | |
$PHP_PATH artisan migrate --force | |
npm run production | |
$PHP_PATH artisan up | |
echo 'Update finished.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment