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

flap152's avatar
Level 11

Make Vapor deployment faster?

I have seen reviews and lessons on Vapor and deployments were sub-minute. What I witness on my machine is 4-5 minutes! It is a starter application with almost nothing in it. In a latest test, the build took 2m29s, and the total deployment clocked 4m32s. What makes it so slow?

I think my machine is decent enough (Win10 i7-6500 8GB). I made sure xdebug is off. I understand vapor-cli will build, package, upload, and perform remote duties on AWS so CPU, memory, disk, internet will all have effects, but where to look?

Is the "composer update" time a valid reference?

0 likes
6 replies
flap152's avatar
Level 11

I use Laragon. Currently on PHP 7.2.29 x64 installed manually.

flap152's avatar
Level 11

I re-activated my homestead/vagrant install and got 5 minute deployments. I have 8GB on this portable machine, so I guess that 's the main reason.

I thought maybe PHP did not have enough allocated to it or something, but the limit is at -1(unlimited)

michaelnguyen547's avatar

@flap152 if you have a mac, definitely give Laravel Valet (https://laravel.com/docs/7.x/valet) a try. It took me several hours to make it work. With Valet (no virtual machine), the vapor deployment is way faster.

Mac Mini 2018 - i7 / 32 RAM

  • 7 minutes with Vagrant setup
  • 2 minutes with Valet setup
kurucu's avatar

I switched away from local deployments and set up GitHub Actions on my vapor projects. So now I push to master to deploy. It still takes 2-5 minutes, but me and the Mac are not involved. It was quite easy to set up in the end.

If a Laracasts video series was set up for Vapor, setting up CI would be a great topic for an episode or two.

Please or to participate in this conversation.