1. 更新前端界面和nginx配置文件
2. 更新部署脚本
This commit is contained in:
20
load_nginx.sh
Normal file
20
load_nginx.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# 避免build等文件夹被上传引发问题
|
||||
rm -rf build
|
||||
rm -rf log
|
||||
rm -rf .gradle
|
||||
|
||||
cd ..
|
||||
|
||||
docker stop nginx_frontend && docker rm nginx_frontend
|
||||
docker image rm protection_nginx
|
||||
echo "old containers and images are cleared"
|
||||
|
||||
docker load < realtime_protection/docker-ubuntu/protection_ubuntu.tar
|
||||
|
||||
docker build -t protection_nginx -f realtime_protection/docker-nginx/Dockerfile .
|
||||
echo "built frontend servers"
|
||||
|
||||
docker run -itd --name nginx_frontend -p 8080:8080 protection_nginx
|
||||
echo "started frontend servers"
|
||||
Reference in New Issue
Block a user