From 957981c2c31792df1af7553ba1d35e763277d664 Mon Sep 17 00:00:00 2001 From: shufeng2012 <277665039@qq.com> Date: Sun, 26 Jul 2026 20:57:04 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=B1=20=E6=9B=B4=E6=96=B0=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _inst.sh | 1 + _setup.rhel.sh | 0 core/init.txt | 1 + smtp/_set.sh | 4 ++-- smtp/requirements.txt | 3 ++- 5 files changed, 6 insertions(+), 3 deletions(-) mode change 100644 => 100755 _setup.rhel.sh diff --git a/_inst.sh b/_inst.sh index a701068..03c5f4d 100755 --- a/_inst.sh +++ b/_inst.sh @@ -34,4 +34,5 @@ inst_module "waf" # waf 在 gateway 之前编译,部署时由 core 先拉起 w inst_module "static" inst_module "dnfs" inst_module "db" +inst_module "smtp" inst_module "core" # core last diff --git a/_setup.rhel.sh b/_setup.rhel.sh old mode 100644 new mode 100755 diff --git a/core/init.txt b/core/init.txt index 23998a1..12b510e 100644 --- a/core/init.txt +++ b/core/init.txt @@ -1,6 +1,7 @@ bash /opt/micro_servers/db/_run.sh bash /opt/micro_servers/ai_review/_run.sh bash /opt/micro_servers/dnfs/_run.sh +bash /opt/micro_servers/smtp/_run.sh bash /opt/micro_servers/static/_run.sh bash /opt/micro_servers/waf/_run.sh bash /opt/micro_servers/gateway/_run.sh diff --git a/smtp/_set.sh b/smtp/_set.sh index e50af4f..5c79af3 100755 --- a/smtp/_set.sh +++ b/smtp/_set.sh @@ -1,7 +1,7 @@ #!/bin/bash cd "$(dirname "$0")" || exit -python3 -m venv .env +python3 -m venv venv #sudo chmod +x .env/bin/activate -source .env/bin/activate +source venv/bin/activate pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple #nuitka --standalone smtp.py diff --git a/smtp/requirements.txt b/smtp/requirements.txt index c383cd6..5680c64 100644 --- a/smtp/requirements.txt +++ b/smtp/requirements.txt @@ -3,4 +3,5 @@ flask flask-cors flask_sqlalchemy #gunicorn -waitress \ No newline at end of file +waitress +python-dotenv \ No newline at end of file