NeoLee commited on
Commit
2ced728
·
verified ·
1 Parent(s): 65e6a52

create supervisord

Browse files
Files changed (1) hide show
  1. supervisord.conf +27 -0
supervisord.conf ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [supervisord]
2
+ nodaemon=true
3
+ user=user
4
+
5
+ [program:flask_app]
6
+ command=python3 app.py
7
+ autostart=true
8
+ autorestart=true
9
+ stdout_logfile=/tmp/flask.log
10
+ stderr_logfile=/tmp/flask.err
11
+
12
+ [program:gemini_core]
13
+ # 启动 Gemini CLI 的核心服务
14
+ command=npx -y @google/gemini-cli-core
15
+ autostart=true
16
+ autorestart=true
17
+ stdout_logfile=/tmp/gemini.log
18
+ stderr_logfile=/tmp/gemini.err
19
+
20
+ [program:cf_tunnel]
21
+ # 这里填入你的 Cloudflare Tunnel Token
22
+ # 建议通过环境变量注入,或者暂时硬编码测试
23
+ command=cloudflared tunnel --no-autoupdate run --token ${CF_TUNNEL_TOKEN}
24
+ autostart=true
25
+ autorestart=true
26
+ stdout_logfile=/tmp/cf.log
27
+ stderr_logfile=/tmp/cf.err