Last active
October 31, 2016 17:26
-
-
Save gustavonovaes/6b9b223601df8de3ca4da5aa4262761e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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