Back

How to move Laravel Project from localhost to production server


I just created a simple Laravel Application. I now would like to move to production (shared hosting) just to see how it will perform on a live server. I would appreciate if anyone could explain me what are the steps to do so.

henrik-nordstrom replied 3 months ago

Normally you would use source control (i.e. GIT). But if you are really just looking to test it once you can FTP the files over. You don't need to move the vendor directory. Then configure you database on the server and put the login details in your .env file. Then run a "composer install" which will bring your packages (vendor folder) in. Then run a "php artisan migrate", to get your database tables set up.

This is kind of quick & dirty. But it will get the job done. I suggest you look into GIT and enjoyer.io which will make your life a lot easier in the long run.

alemioma replied 3 months ago

Hallo! Look at this tutorial

https://www.youtube.com/watch?v=WNNHfl6vXQU

ilinovster replied 3 months ago

Very useful tutorial for moving on shared host: http://blog.kongnir.com/2015/09/25/setting-up-laravel-5-on-shared-hosting-server/


Sign in to participate in this thread!



We'd like to thank these amazing companies for supporting us