Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dan3460's avatar

Upload App to server, size of application

I'm completely new to Laravel. I few days ago i started one of the tutorials, got it working on the internal server across the office. I don't remember how i got the files over the server, but i could swear that i used FTP but not sure, i could i have used a thumb-drive. I was playing with the app, i think i deleted some files, because it crashed and burn. So i started a new application, moved it to the server with FTP and notice that the application was more than 6000 files and my ftp choked. How do you normally deploy an app to a server?

0 likes
3 replies
Chris1904's avatar

Hi,

I generally use GitHub. Or you can zip it and unzip it on the server using FTP.

MikeHopley's avatar

I'd be willing to bet the vast majority of those files are not your actual application. For example, in my application I have:

  • 9,000 in /vendor
  • 18,000 in /node_modules
  • 318 in /app
  • 181 in /tests

You can see that my own code is vastly outnumbered by my dependencies. This is one reason that /vendor and /node_modules are usually excluded from version control. The /vendor dependencies are installed on the server with composer install, instead of copying the files across from your local machine.

To deploy, I use Git directly (i.e. not via Github), but I think for most people Github is a better option.

Please or to participate in this conversation.