-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.cjs
More file actions
30 lines (30 loc) · 952 Bytes
/
ecosystem.config.cjs
File metadata and controls
30 lines (30 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
module.exports = {
apps: [
// ── Python OTP Microservice (port 8000) ───────────────────────────────
{
name: 'nexwallet-otp',
script: 'python3',
args: '-m uvicorn main:app --host 0.0.0.0 --port 8000 --log-level info',
cwd: './otp_service',
interpreter: 'none',
env: { PYTHONUNBUFFERED: '1' },
watch: false,
instances: 1,
exec_mode: 'fork',
restart_delay: 3000,
max_restarts: 10,
},
// ── Hono / Cloudflare Pages frontend (port 3000) ──────────────────────
{
name: 'nexwallet',
script: 'npx',
args: 'wrangler pages dev dist --ip 0.0.0.0 --port 3000',
env: { NODE_ENV: 'development', PORT: 3000 },
watch: false,
instances: 1,
exec_mode: 'fork',
restart_delay: 2000,
max_restarts: 10,
},
],
}