Skip to content

Instantly share code, notes, and snippets.

@crynobone
Created February 7, 2014 01:08
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crynobone/8855752 to your computer and use it in GitHub Desktop.
Save crynobone/8855752 to your computer and use it in GitHub Desktop.
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