10 months ago

Hitting memory limits deploying Vapor apps to Fly

I’ve been trying to deploy a Vapor app to Fly, and the deploy command continuously aborted unexpectedly. It turns out that Swift’s static linter needs more memory than the one available in the builders that Fly provides, 2048 MB. I tried to increase the memory using fly scale as suggested in the community forum, but it didn’t work. Perhaps because the scale command cannot be used with the builder. I used the --local-only flag to build locally using my local running instance of Docker. Once the image is built, the Fly CLI pushes it to its image registry and continues the deployment.

About Pedro Piñera

I created XcodeProj and Tuist, and co-founded Tuist Cloud. My work is trusted by companies like Adidas, American Express, and Etsy. I enjoy building delightful tools for developers and open-source communities.