Allow the website bundle to run within the upgraded memory budget

This commit is contained in:
unimatrixgit 2026-11-16 00:47:08 +01:00
commit f9e3846655

View file

@ -94,7 +94,7 @@ def main():
for name,entry in ((f'dunerealms-web-{slot}','node/start.mjs'),(f'dunerealms-cp-{slot}','control-panel/start.mjs')):
apps.append({'name':name,'cwd':str(release),'script':entry,'exec_mode':'fork','instances':1,
'interpreter':NODE,'node_args':'--env-file='+ENV,'autorestart':True,
'max_memory_restart':'2G','env':{'NODE_ENV':'production','PORT':str(web),'CP_PORT':str(cp)}})
'max_memory_restart':'3G','env':{'NODE_ENV':'production','PORT':str(web),'CP_PORT':str(cp)}})
config.write_text('module.exports = '+json.dumps({'apps':apps})+';\n')
print('Starting candidate',sha,slot,flush=True)
pm2('start',str(config),timeout=90) if False else pm2('start',str(config))