Skip to content

Instantly share code, notes, and snippets.

@gustavonovaes
Last active October 31, 2016 17:26
Show Gist options
  • Save gustavonovaes/6b9b223601df8de3ca4da5aa4262761e to your computer and use it in GitHub Desktop.
Save gustavonovaes/6b9b223601df8de3ca4da5aa4262761e to your computer and use it in GitHub Desktop.
# Check if your HTTPD server run as www-data.
sudo chown -R ${USER}:www-data $1/
sudo find $1/ -type d -exec chmod 775 {} \;
sudo find $1/ -type d -exec chmod ug+s {} \;
sudo find $1/ -type f -exec chmod 644 {} \;
sudo chmod -R ug+rwx $1/storage/
sudo chmod -R ug+rwx $1/bootstrap/cache/
# Clear the old boostrap/cache/compiled.php
sudo php $1/artisan clear-compiled
sudo php $1/artisan route:cache
sudo php $1/artisan config:cache
php $1/artisan optimize
# Migrate any database changes
#php $1/artisan migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment