Skip to content

Commit

Permalink
fix: 激活虚拟环境
Browse files Browse the repository at this point in the history
  • Loading branch information
linyuan0213 committed Jan 7, 2025
1 parent 1476acf commit 14422db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion docker/rootfs/etc/services.d/NAStool/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# shellcheck shell=bash

umask ${UMASK}
. ${WORKDIR}/.venv/bin/activate

exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${NT_PORT}" \
Expand Down
3 changes: 1 addition & 2 deletions docker/rootfs/etc/services.d/config_monitor/run
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/with-contenv bash

umask ${UMASK}
. ${WORKDIR}/.venv/bin/activate

exec \
cd ${WORKDIR} s6-setuidgid nt python config_monitor.py
cd ${WORKDIR} s6-setuidgid nt . .venv/bin/activate && python config_monitor.py
2 changes: 2 additions & 0 deletions start-server.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh
# 激活虚拟环境
. .venv/bin/activate
# 启动后创建gunicorn.pid文件
gunicorn run:App -c gunicorn.conf.py

0 comments on commit 14422db

Please sign in to comment.