J
J
JP_Cool2018-10-27 19:50:44
Network administration
JP_Cool, 2018-10-27 19:50:44

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.

I've never experienced anything like this and don't know what to do. Help a newbie please! :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max Kostinevich, 2018-10-27
@max-ko

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 question

Ask a Question

731 491 924 answers to any question