diff --git a/docker/nginx/entrypoint.sh b/docker/nginx/entrypoint.sh index e425d4e6..4d30eaf0 100644 --- a/docker/nginx/entrypoint.sh +++ b/docker/nginx/entrypoint.sh @@ -122,6 +122,16 @@ fi +# pm2 +if [ -s /root/.pm2/dump.pm2 ]; then + echo "There are saved NodeJS/Python applications, starting them.." + pm2 resurrect +else + echo "No saved NodeJS/Python applications to run. Skipping 'pm2 resurrect'." +fi + + + # sudo if grep -q 'SUDO="YES"' /etc/entrypoint.sh; then