Skip to content

Instantly share code, notes, and snippets.

@acbilimoria
Created May 5, 2017 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acbilimoria/86b147fdca6951ccdf9ca17e2e5e2d0c to your computer and use it in GitHub Desktop.
Save acbilimoria/86b147fdca6951ccdf9ca17e2e5e2d0c to your computer and use it in GitHub Desktop.
Laravel 5.4 Ubuntu 16.04 Production Build
# generate key
php artisan key:generate
# disable debugging
sed -i "s/'debug' => env('APP_DEBUG', true),/'debug' => env('APP_DEBUG', false),/g" config/app.php
# allow Laravel to write to storeage
sudo chmod -R 775 /var/www/SITE-NAME/public/storage
composer install --no-dev --optimize-autoloader
npm run production
php artisan optimize
php artisan migrate
# Clear the cache
php artisan cache:clear
# Cache the routes
php artisan route:cache
# TODO only push if all tests pass
# phpunit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment