From b42562e304e97793ae3ef7abfa1b9bddcebd03b9 Mon Sep 17 00:00:00 2001 From: ngfchl Date: Thu, 13 Oct 2022 00:05:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=9B=B4=E6=96=B0=E6=97=B6?= =?UTF-8?q?=E5=BC=BA=E5=88=B6=E8=A6=86=E7=9B=96=E6=9C=AC=E5=9C=B0=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto_pt/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/auto_pt/views.py b/auto_pt/views.py index 5977e9d..9e363e8 100644 --- a/auto_pt/views.py +++ b/auto_pt/views.py @@ -385,9 +385,11 @@ def do_update(request): main_pt_site_site_mtime = os.stat('./main_pt_site_site.json').st_mtime update_command = { # 'cp db/db.sqlite3 db/db.sqlite3-$(date "+%Y%m%d%H%M%S")', + '获取更新信息': 'git fetch', + '强制覆盖本地': 'git reset --hard', '拉取代码更新': 'git pull', '安装依赖': 'pip install -r requirements.txt', - '创建数据库同步文件': 'python manage.py makemigrations', + '创建同步文件': 'python manage.py makemigrations', '同步数据库': 'python manage.py migrate', } result = []