Make sure .env
file contain the following
APP_URL
set to the correct publicly accessible URL- Doesn't have the
APP_ENV
so app is in production mode APP_DEBUG=false
to disable debug mode
After pulling new changes from git, make sure you do the following.
composer install
to install dependencies.
php artisan migrate
to run migrations.
Run the following commands to optimize the app.
composer dump-autoload
php artisan clear-compiled
php artisan config:cache
php artisan route:cache
php artisan optimize --force