make example ecosystem.yml watch the server script for changes

This commit is contained in:
HF 2023-12-13 10:58:13 +01:00
parent 05298604b1
commit 0a4199e633
1 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,9 @@
apps:
- script : ./server.js
name : 'ppfun-server'
node_args: --nouse-idle-notification --expose-gc
- script : ./server.js
name : 'ppfun'
node_args : --nouse-idle-notification --expose-gc
watch : [ 'server.js' ]
watch_delay: 5000
env:
PORT: 5000
HOST: "localhost"