Skip to content

Instantly share code, notes, and snippets.

@sergix44
Last active September 24, 2018 11:32
Show Gist options
  • Save sergix44/4da0ba1de97a85bf9078a7a0c95ef054 to your computer and use it in GitHub Desktop.
Save sergix44/4da0ba1de97a85bf9078a7a0c95ef054 to your computer and use it in GitHub Desktop.
Laravel deploy script
#!/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