Skip to content

Instantly share code, notes, and snippets.

@fzldn
Created Jul 30, 2022
Embed
What would you like to do?
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