Laravel project deploy from local server to live server

July 7, 2021 . 1 MIN READ

the word “live” is used several times. I am not sure if you are saying “live” (as in ‘i live in a house’) or “live” (as in ‘lets go listen to live music).

Are you saying you want to deploy a Laravel 5 project to a web server?

Making the vast assumption that you already have a web server setup and configured (which is an entirely different and very complicated topic that can’t be answered in a simple forum thread…in which case I would say to use Laravel Forge to setup and push out a server so that you don’t have to learn all that junk)…

You just need to place your project folder somewhere on your server. For example, a project I might create for a fictional site called http://www.mycrazysillylaravelsite.com might be put onto my server in the following location

/home/benderisgr8te/www.mycrazysillylaravelsite.com/

Then, you would tell your web server to use the following folder for your root

/home/benderisgr8te/www.mycrazysillylaravelsite.com/public

Then you should be good to go.

Again, this assumes the following…

  • That you have a web server
  • That PHP and any other dependencies your app uses are installed and configured properly
  • That you have the means to copy your local files (either FTP, or pushing to VCS (such as GitHub) and then using Envoyer to deploy).

https://laracasts.com/discuss/channels/laravel/how-to-live-local-server-project-on-live-server

Leave a Reply

Your email address will not be published. Required fields are marked *