Skip to content

Instantly share code, notes, and snippets.

@johndavedecano
Created October 17, 2021 14:32
Show Gist options
  • Save johndavedecano/3796afce7ca8095ba5d49ecc76a8ee7a to your computer and use it in GitHub Desktop.
Save johndavedecano/3796afce7ca8095ba5d49ecc76a8ee7a to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
chown www-data:www-data -R /var/www/html/storage
chown www-data:www-data -R /var/www/html/bootstrap/cache
chmod 755 -R /var/www/html/storage
chmod 755 -R /var/www/html/bootstrap/cache
cd /var/www/html
// start supervisor
// start scheduler
php artisan storage:link
php artisan config:cache
php artisan view:cache
php artisan route:cache
exec "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment