how do you set up your local environment? do you use vagrant?
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?
2m29s is not that bad. Try this setting to see it reduces your deployment time (https://docs.vapor.build/1.0/projects/the-basics.html#managing-vendors)
CPU/RAM does affect building time. I build the same project on
- iMac 2015 - i5/ 32 RAM - took 15m
- Mac Mini 2018 - i7 / 32 RAM - took 7m
Ignore my long build time
Please or to participate in this conversation.