blablabla blablabla blablabla blablabla - 1 year ago 56
PHP Question

How correctly deploy a Laravel application from my local environment to my remote server?

I am pretty new in Laravel and I have the following doubt.

I have to migrate a Laravel 5.4 application that I have developed from my local environment to my remote server.

Can I do it in the following way?

  1. Take the entire directory containing my local application and upload it into the /var/www/html directory of my remote server.

  2. Export my local database and import on my remote database.

  3. Change the content of the .env file.

Now the application should work on my remote server. Is it correct or am I missing something and I have to do something else?

Answer Source

you'll maybe have to update some packages on your remote server so Laravel can work properly. More details here :

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download