Skip to content

Commit

Permalink
home: Restart the process when consuming 150M or more memory
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrRip committed Sep 12, 2023
1 parent 47b7d39 commit 1879939
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/home/ecosystem.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ module.exports = {
apps: [
{
name: 'mzg.fan-home',
script: './.output/server/index.mjs',
port: 22320,
exec_mode: 'cluster',
instances: 'max',
script: './.output/server/index.mjs',
max_memory_restart: '150M',
env: {
'NITRO_PORT': 22320
}
Expand Down

0 comments on commit 1879939

Please sign in to comment.