Created
May 5, 2017 20:34
-
-
Save acbilimoria/86b147fdca6951ccdf9ca17e2e5e2d0c to your computer and use it in GitHub Desktop.
Laravel 5.4 Ubuntu 16.04 Production Build
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
# 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