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

HUNHammer98's avatar

How to deploy an application on prod server without composer install

Hi all,

i would like to deploy a laravel application on a production server which is not connected to the public internet, and I would like to do the composer install on my test server, before moving it to production.

Could someone provide me with a list of rule of thumb, and how to + steps regarding this scenario?

Many thanks

0 likes
2 replies
martinbean's avatar

@hunhammer98 If you want to deploy to a production server without running composer install, then you’re going to need to install your Composer dependencies somewhere, and then copy those files along with your project to the production server.

jlrdw's avatar

How do you plan on getting it to the production server, is it your own in-house server? Otherwise you would have no way of putting it on the production server. A production server is usually online.

If that is the case once installed up and running on your test machine, simply use a thumb drive.

Meaning transfer the files over using a thumb drive.

Please or to participate in this conversation.