From 0a4199e633b6293462e7b0467c7924d657000a58 Mon Sep 17 00:00:00 2001 From: HF Date: Wed, 13 Dec 2023 10:58:13 +0100 Subject: [PATCH] make example ecosystem.yml watch the server script for changes --- deployment/example-ecosystem.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/deployment/example-ecosystem.yml b/deployment/example-ecosystem.yml index 17df6399..fffc3175 100644 --- a/deployment/example-ecosystem.yml +++ b/deployment/example-ecosystem.yml @@ -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"