How to install Laravel on a server?

Asked

Viewed 1,627 times

-3

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

Thank you, from now on.

  • It can be installed normally on an FTP server, as Composer is only a php package manager. It does not interfere in an application at all.

1 answer

1

I believe that answer leads us to the famous "depends"...

Depends on what?

Your server is 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 it as follows:

  • We use the Git for version control.
  • We make a git pull in the application folder when there are new changes.
  • We install Composer on the server and run the command composer update 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 quoted above. And when my amendments were completed, I would make a ftp sending the entire project to production.

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

Nothing stops you from making a FTP in an application made in Laravel, you will only have to know how to properly configure (mainly on shared servers)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.