Skip to content

Instantly share code, notes, and snippets.

Created Feb 7, 2014
What would you like to do?
Laravel project deploy script
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