Skip to content

Commit

Permalink
change pip --index-url
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonic Shi authored and Sonic Shi committed Jul 31, 2024
1 parent 02453a5 commit c221861
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
git clone -b main [email protected]:shisongsong/xhm-server.git ~/apps/xhm-server/deployments/current
cd ~/apps/xhm-server/deployments/current
# 安装依赖
pip3 install -r requirements.txt
pip3 install --index-url https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn -r requirements.txt
# 启动或重启 Gunicorn
echo "[program:app]" | sudo tee -a /etc/supervisord.d/app.conf
echo "command=gunicorn --workers 3 --bind unix:/tmp/app.sock -m app:app" | sudo tee -a /etc/supervisord.d/app.conf
Expand Down
22 changes: 11 additions & 11 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Flask
Flask-SQLAlchemy
Flask-Migrate
Flask-WTF
Flask-JWT-Extended
wtforms
Flask-Login
flask-marshmallow
marshmallow-sqlalchemy
flask_cors
gunicorn
Flask --index-url https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
Flask-SQLAlchemy --index-url https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
Flask-Migrate --index-url https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
Flask-WTF --index-url https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
Flask-JWT-Extended --index-url https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
wtforms --index-url https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
Flask-Login --index-url https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
flask-marshmallow --index-url https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
marshmallow-sqlalchemy --index-url https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
flask_cors --index-url https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
gunicorn --index-url https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn

0 comments on commit c221861

Please sign in to comment.