Only once on your server
Create a deploy.sh
file at the root of your project :
#!/usr/bin/env bash
git pull origin master
php artisan down
npm install
npm run development
composer install --no-suggest --optimize-autoloader
php artisan config:cache
php artisan route:cache
php artisan up
php artisan queue:restart
chown -R www-data:www-data .