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:
parent
d3a0e8067e
commit
32bf923c1a
|
@ -11,6 +11,7 @@ processes = []
|
||||||
[experimental]
|
[experimental]
|
||||||
allowed_public_ports = []
|
allowed_public_ports = []
|
||||||
auto_rollback = true
|
auto_rollback = true
|
||||||
|
cmd = ["node", "--max-old-space-size=180", "app.js"]
|
||||||
|
|
||||||
[[services]]
|
[[services]]
|
||||||
http_checks = []
|
http_checks = []
|
||||||
|
|
Loading…
Reference in a new issue