增加sh内存检查python的脚本
This commit is contained in:
16
sh/start_lessie_sourcing_agents.sh
Normal file
16
sh/start_lessie_sourcing_agents.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
cd /data/webapps/lessie_sourcing_agents_s5
|
||||
uv sync
|
||||
source /data/webapps/lessie_sourcing_agents_s5/.venv/bin/activate
|
||||
TIMESTAMP=$(date +"%Y%m%d_%H%M%S")
|
||||
LOGFILE="/data/webapps/lessie_sourcing_agents_s5/logs/lessie_sourcing_agents_${TIMESTAMP}.log"
|
||||
nohup env APP_ENV=s5 gunicorn -w 4 -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000 --timeout 300 dialogue.app:app --max-requests 200 --max-requests-jitter 50 > "$LOGFILE" 2>&1 &
|
||||
ln -sf "$LOGFILE" /data/webapps/lessie_sourcing_agents_s5/logs/lessie_sourcing_agents_latest.log
|
||||
|
||||
|
||||
cd /data/webapps/lessie_sourcing_agents_s6
|
||||
uv sync
|
||||
source /data/webapps/lessie_sourcing_agents_s6/.venv/bin/activate
|
||||
TIMESTAMP=$(date +"%Y%m%d_%H%M%S")
|
||||
LOGFILE="/data/webapps/lessie_sourcing_agents_s6/logs/lessie_sourcing_agents_${TIMESTAMP}.log"
|
||||
nohup env APP_ENV=s6 gunicorn -w 4 -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8001 --timeout 300 dialogue.app:app --max-requests 200 --max-requests-jitter 50 > "$LOGFILE" 2>&1 &
|
||||
ln -sf "$LOGFILE" /data/webapps/lessie_sourcing_agents_s6/logs/lessie_sourcing_agents_latest.log
|
||||
Reference in New Issue
Block a user