From 01b5c18b01d4de5b4d38cfc0dacf0a975a763e46 Mon Sep 17 00:00:00 2001 From: fscarmen2 Date: Sun, 10 Sep 2023 16:34:09 +0800 Subject: [PATCH] Ignore all the pm2 log files. --- files/entrypoint.sh | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/files/entrypoint.sh b/files/entrypoint.sh index b53acf3..8a11964 100644 --- a/files/entrypoint.sh +++ b/files/entrypoint.sh @@ -423,37 +423,47 @@ generate_pm2_file() { module.exports = { "apps":[ { - "name":"web", - "script":"/app/web.js run" + name: 'web', + script: '/app/web.js run', + out_file: "/dev/null", + error_file: "/dev/null" }, { - "name":"argo", - "script":"cloudflared", - "args":"${ARGO_ARGS}" + name: 'argo', + script: 'cloudflared', + args: "${ARGO_ARGS}", + out_file: "/dev/null", + error_file: "/dev/null" EOF [[ -n "${NEZHA_SERVER}" && -n "${NEZHA_PORT}" && -n "${NEZHA_KEY}" ]] && cat >> ecosystem.config.js << EOF }, { - "name":"nezha", - "script":"/app/nezha-agent", - "args":"-s ${NEZHA_SERVER}:${NEZHA_PORT} -p ${NEZHA_KEY} ${TLS}" + name: 'nezha', + script: '/app/nezha-agent', + args: "-s ${NEZHA_SERVER}:${NEZHA_PORT} -p ${NEZHA_KEY} ${TLS}", + out_file: "/dev/null", + error_file: "/dev/null" EOF [ -n "${SSH_DOMAIN}" ] && cat >> ecosystem.config.js << EOF }, { - "name":"ttyd", - "script":"/app/ttyd", - "args":"-c ${WEB_USERNAME}:${WEB_PASSWORD} -p 2222 bash" + name: 'ttyd', + script: '/app/ttyd', + args: "-c ${WEB_USERNAME}:${WEB_PASSWORD} -p 2222 bash", + out_file: "/dev/null", + error_file: "/dev/null" EOF [ -n "${FTP_DOMAIN}" ] && cat >> ecosystem.config.js << EOF }, { - "name":"filebrowser", - "script":"/app/filebrowser", - "args":"--port 3333 --username ${WEB_USERNAME} --password 'PASSWORD_HASH'" + name: 'filebrowser', + script: '/app/filebrowser', + args: "--port 3333 --username ${WEB_USERNAME} --password 'PASSWORD_HASH'", + out_file: "/dev/null", + error_file: "/dev/null" EOF cat >> ecosystem.config.js << EOF