mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
更新update.sh,在更新时直接安装升级依赖,防止在更新时有增加依赖而出错
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user