启动文件

This commit is contained in:
2024-11-10 20:32:17 +08:00
parent 93ae023ea3
commit d6b31d4727

View File

@@ -1,17 +1,16 @@
#!/bin/sh
# 创建虚拟环境 Python 3.10.12
python3.10 -m venv venv
# python3.10 -m venv venv
source venv/bin/activate
# 安装依赖(使用清华镜像)
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
# pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
# 启动服务
pm2 start python3 --name reverse-5002 -- main.py 5002
pm2 start uvicorn --name reverse-5002 -- main:app --host 0.0.0.0 --port 5002
# pip freeze > requirements.txt
#python3 -m pip install -U pyOpenSSL cryptography