1. 更新前端界面和nginx配置文件

2. 更新部署脚本
This commit is contained in:
EnderByEndera
2024-01-25 09:55:58 +08:00
parent 0da97a5254
commit 1a4e08913c
62 changed files with 38 additions and 54549 deletions

20
load_springboot.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
# 避免build等文件夹被上传引发问题
rm -rf build
rm -rf log
rm -rf .gradle
cd ..
docker stop springboot_backend && docker rm springboot_backend
docker image rm protection_springboot
echo "old containers and images are cleared"
docker load < realtime_protection/docker-ubuntu/protection_ubuntu.tar
docker build -t protection_springboot -f realtime_protection/docker-springboot/Dockerfile .
echo "built backend servers"
docker run -itd --name springboot_backend -p 8081:8081 protection_springboot
echo "started backend servers"