build: add node GC argument to fly template

Fly deployments on the free tier have ~256mb of memory available. Users
with large transaction histories were encountering out of memory errors
when attempting to export their data. This commit adds a node argument
to (more or less) run the garbage collector at a smaller memory usage,
helping keep users on flyio within their available limit.
This commit is contained in:
Arthur E. Jones 2022-07-30 18:27:32 -05:00 committed by James Long
parent d3a0e8067e
commit 32bf923c1a

View file

@ -11,6 +11,7 @@ processes = []
[experimental]
allowed_public_ports = []
auto_rollback = true
cmd = ["node", "--max-old-space-size=180", "app.js"]
[[services]]
http_checks = []