File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 7474 envs : APP_DOMAIN,DB_PASSWORD,JWT_SECRET,REDIS_PASSWORD
7575 script : |
7676 cd /opt/TinyFlow
77- # 拉取最新代码(关键:确保本地更改被丢弃)
77+
78+ # 清理前端构建产物和依赖(避免 git checkout 冲突)
79+ rm -rf web/dist web/node_modules
80+
81+ # 拉取最新代码
7882 git fetch origin
7983 git checkout origin/$(git symbolic-ref --short HEAD)
8084
8488 sudo sed -i "s|Environment=\"JWT_SECRET=.*\"|Environment=\"JWT_SECRET=$JWT_SECRET\"|g" /etc/systemd/system/tinyflow.service
8589 sudo sed -i "s|Environment=\"REDIS_PASSWORD=.*\"|Environment=\"REDIS_PASSWORD=$REDIS_PASSWORD\"|g" /etc/systemd/system/tinyflow.service
8690
87- # 清理前端构建产物和依赖(避免 git checkout 冲突)
88- rm -rf web/dist web/node_modules
89-
9091 # 重新构建前端
9192 cd web
9293 npm ci --prefer-offline --no-audit
You can’t perform that action at this time.
0 commit comments