From 41ffe6fda506a4499416c6386b362ca8520550b5 Mon Sep 17 00:00:00 2001 From: ngfchl Date: Thu, 6 Oct 2022 15:08:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0update.sh=EF=BC=8C=E5=9C=A8?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=B6=E7=9B=B4=E6=8E=A5=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=E4=BE=9D=E8=B5=96=EF=BC=8C=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E5=9C=A8=E6=9B=B4=E6=96=B0=E6=97=B6=E6=9C=89=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E8=80=8C=E5=87=BA=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 674db0c..fb47550 100755 --- a/update.sh +++ b/update.sh @@ -1,6 +1,7 @@ # 先备份数据库文件再拉取更新 $(date "+%Y%m%d%H%M%S")当前时间年月日时分秒 cp /var/www/html/ptools/db/db.sqlite3 /var/www/html/ptools/db/db.sqlite3-$(date "+%Y%m%d%H%M%S") && - git pull && + git pull origin $DEV && cp -f /var/www/html/ptools/start.sh /var/www/html/start.sh && + pip install -r requirements.txt -U && python manage.py makemigrations && python manage.py migrate