forked from unimatrix/web
Allow the website bundle to run within the upgraded memory budget
This commit is contained in:
parent
ee700e0627
commit
f9e3846655
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff