diff --git a/ecosystem.config.js b/ecosystem.config.js index 3d4ecd0..8ba96ff 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -54,8 +54,9 @@ module.exports = { // Reads TSS_API_HOST/PORT from .env (default 127.0.0.1:6100). { name: 'tssbot-api', - script: 'web/main.py', - interpreter: PY_INTERPRETER, + script: PY_INTERPRETER, + args: '-m web.main', + interpreter: 'none', cwd: `${DEPLOY_PATH}/../TSSBOT`, instances: 1, autorestart: true, @@ -78,8 +79,9 @@ module.exports = { // Reads SREBOT_EXTERNAL_HOST/PORT/UPSTREAM_URL + STORAGE_VOL_PATH from .env. { name: 'relay-gateway', - script: 'relay_gateway/gateway.py', - interpreter: PY_INTERPRETER, + script: PY_INTERPRETER, + args: '-m relay_gateway.gateway', + interpreter: 'none', cwd: `${DEPLOY_PATH}/../SHARED`, instances: 1, autorestart: true,