Thursday, April 13, 2017

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?



via blablabla blablabla

Advertisement