aab0b9bdf6
Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
629 B
JavaScript
19 lines
629 B
JavaScript
// 默认槽位 1 模板;安装/更新时由 deploy/lib/common.sh#write_ecosystem_config 按目录重写。
|
|
module.exports = {
|
|
apps: [
|
|
{
|
|
name: 'eth-hedge-api',
|
|
cwd: '/opt/eth_hedge_sim/backend',
|
|
script: '/opt/eth_hedge_sim/.venv/bin/uvicorn',
|
|
args: 'app.main:app --host 0.0.0.0 --port 5155',
|
|
interpreter: 'none',
|
|
env: {
|
|
// MODE 以仓库根 .env 为准(设置页可切 SIM/LIVE),勿在此硬编码覆盖
|
|
ENV_NAME: 'test',
|
|
TZ: 'Asia/Shanghai',
|
|
},
|
|
// 密钥与本地配置一律读 /opt/eth_hedge_sim/.env(勿写进本文件)
|
|
},
|
|
],
|
|
};
|