Created
February 7, 2014 01:08
-
-
Save crynobone/8855752 to your computer and use it in GitHub Desktop.
Laravel project deploy script
This file contains hidden or 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
cd /var/www/project | |
composer self-update | |
php artisan down | |
rm /var/www/project/bootstrap/compiled.php | |
git reset --hard | |
git pull | |
echo "<?php return \"production\";" > bootstrap/environment.php | |
composer install --no-dev | |
find /var/www/project/public/packages -type d -exec chmod 775 {} \; | |
find /var/www/project/public/packages -type f -exec chmod 664 {} \; | |
find /var/www/project/public/packages -exec chown www-data {} \; | |
php artisan up | |
sudo chown -R www-data app/storage | |
sudo chmod -Rf 777 app/storage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment