Created
July 30, 2022 03:26
-
-
Save fzldn/18522333595aa6878be2e48e2f1c1ede to your computer and use it in GitHub Desktop.
script for deploy laravel project with compile mix
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
#!/bin/bash | |
export NVM_DIR=~/.nvm | |
source ~/.nvm/nvm.sh | |
cd /var/www/html | |
git pull | |
composer install | |
php artisan migrate --seed | |
php artisan config:cache | |
php artisan route:cache | |
php artisan view:cache | |
npm install && npm run production |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment