How to install Laravel on a server?

-3

In Wordpress, for example, we use ftp to send files. However, in Laravel is used composer, and by what it seems it is installed locally. How do I install to a same web address? I hope it makes sense, and forgive me for the rough question!

Thank you in advance.

    
asked by anonymous 01.05.2016 / 02:31

1 answer

1

I think this answer takes us to the famous "depends" ...

Depends on what?

Is your server shared or dedicated?

On Dedicated Servers

In the company where I work, I use a dedicated server. When we need to update our systems made in Laravel, we do the following:

  • We use Git for versioning.
  • We make a git pull in the application folder when there are new changes.
  • We install the composer on the server and run the composer update command when it is necessary to install the dependencies. If the system is new, then we run composer install .

On Dedicated Servers

I would do everything I just mentioned above. And, when my changes were completed, I would make a ftp sending the entire project to production.

Remembering that you should have your application point to the public/ folder of Laravel . This is easy to set up on dedicated servers.

Nothing prevents you from doing FTP on an application made in Laravel, you will only have to know how to configure correctly (especially on shared servers)

    
01.05.2016 / 02:38