Answer the question
In order to leave comments, you need to log in
How to upload laravel site to host correctly?
Please help me to properly deploy a site written in laravel on hosting. How should I change the .env file for production? What to write in the .htaccess file? Because I get 2 errors:
No supported encrypter found. The cipher and / or key length are invalid.
Answer the question
In order to leave comments, you need to log in
I am using Forge + Envoyer .
If you don't understand at all, you can try Cloudways. Hosted on Apache in 2k18 (especially if you have shared) - IMHO bad manners.
In .env you write access to the database, application url and APP_ENV=production + commands during deployment:
composer install
npm install
npm run production
php artisan view:clear
php artisan cache:clear
php artisan vendor:publish
php artisan migrate --force
php artisan queue:restart
php artisan config:cache
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question