SIP_GoldBees_Backend/backend/ecosystem.config.js

46 lines
1.1 KiB
JavaScript

module.exports = {
apps: [
{
name: "Quantfortune - Backend",
cwd: "/SERVER_CLIENT/PRODUCTION/SIP_GoldBees_Backend/backend",
script: "bash",
args: [
"-lc",
`
export PYTHONPATH=/SERVER_CLIENT/PRODUCTION/SIP_GoldBees_Backend:/SERVER_CLIENT/PRODUCTION/SIP_GoldBees_Backend/backend
export APP_ENV=production
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_SCHEMA=quant_app
export BROKER_TOKEN_KEY='v_GdTdOmIKhJztW1E3lxrXBDmhgCmA0MeoeM4wprqCk='
export RESET_OTP_SECRET='gNr0HlTQu8XhwvRnkoV2oUnmTTLV4c0s9vkG019jVlXQ5IhycTjPZO0xgWkfS4Wx7J8xuee5-rCVQpXYIK5XjQ'
export CORS_ORIGINS='https://app.quantfortune.com'
exec /SERVER_CLIENT/PRODUCTION/SIP_GoldBees_Backend/backend/.venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 3002
`
],
interpreter: "none",
autorestart: true,
watch: false,
max_memory_restart: "1G",
env: {
NODE_ENV: "production",
},
},
],
};