refact: update script

This commit is contained in:
liuyuanchuang
2026-01-27 23:46:52 +08:00
parent d1a56a2ab3
commit a59fbd0edd
2 changed files with 12 additions and 0 deletions

12
deploy_dev.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
git push origin test
ssh ubuntu << 'ENDSSH'
cd /home/yoge/Dev/doc_ai_backed
git checkout test
git pull origin test
docker compose down
docker image rm doc_ai_backed-doc_ai:latest
docker compose -f docker-compose.yml up -d
ENDSSH