Make sure .env file contain the following
APP_URLset to the correct publicly accessible URL- Doesn't have the
APP_ENVso app is in production mode APP_DEBUG=falseto 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