diff --git a/backend/ecosystem.config.js b/backend/ecosystem.config.js index 9b0e8f0..646da2e 100644 --- a/backend/ecosystem.config.js +++ b/backend/ecosystem.config.js @@ -2,6 +2,7 @@ module.exports = { apps: [ { name: "Quantfortune - Backend", + cwd: "/SERVER_CLIENT/PRODUCTION/SIP_GoldBees_Backend/backend", script: "bash", @@ -17,12 +18,13 @@ export DB_HOST=localhost export DB_PORT=5432 export DB_NAME=trading_db export DB_USER=trader -export DB_PASSWORD=traderpass -export PGPASSWORD=traderpass +export DB_PASSWORD='traderpass' +export PGPASSWORD='traderpass' export DB_SCHEMA=quant_app -export BROKER_TOKEN_KEY=v_GdTdOmIKhJztW1E3lxrXBDmhgCmA0MeoeM4wprqCk= -export RESET_OTP_SECRET=gNr0HlTQu8XhwvRnkoV2oUnmTTLV4c0s9vkG019jVlXQ5IhycTjPZO0xgWkfS4Wx7J8xuee5-rCVQpXYIK5XjQ +export BROKER_TOKEN_KEY='v_GdTdOmIKhJztW1E3lxrXBDmhgCmA0MeoeM4wprqCk=' + +export RESET_OTP_SECRET='gNr0HlTQu8XhwvRnkoV2oUnmTTLV4c0s9vkG019jVlXQ5IhycTjPZO0xgWkfS4Wx7J8xuee5-rCVQpXYIK5XjQ' export CORS_ORIGINS='https://app.quantfortune.com' @@ -31,6 +33,14 @@ exec /SERVER_CLIENT/PRODUCTION/SIP_GoldBees_Backend/backend/.venv/bin/uvicorn ap ], interpreter: "none", + + autorestart: true, + watch: false, + max_memory_restart: "1G", + + env: { + NODE_ENV: "production", + }, }, ], }; \ No newline at end of file