Skip to content

Instantly share code, notes, and snippets.

@fzldn
Created July 30, 2022 03:26
Show Gist options
  • Save fzldn/18522333595aa6878be2e48e2f1c1ede to your computer and use it in GitHub Desktop.
Save fzldn/18522333595aa6878be2e48e2f1c1ede to your computer and use it in GitHub Desktop.
script for deploy laravel project with compile mix
#!/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