deploy:部署脚本修改

This commit is contained in:
fanxb 2021-03-09 11:44:12 +08:00
parent 6ac58f9900
commit f72141527d
2 changed files with 0 additions and 15 deletions

View File

@ -1,3 +0,0 @@
2021/03/08 17:02:34 [emerg] 1#1: host not found in upstream "bookmark-service" in /etc/nginx/nginx.conf:34
2021/03/08 17:04:25 [emerg] 1#1: host not found in upstream "bookmark-service" in /etc/nginx/nginx.conf:34
2021/03/08 17:06:09 [emerg] 1#1: host not found in upstream "bookmark-service" in /etc/nginx/nginx.conf:34

12
init.sh
View File

@ -1,12 +0,0 @@
#/bin/bash
base=$(cd "$(dirname "$0")";pwd)
cd $bash
# 用于前后端打包
docker run -t --rm --name buildBookmark -v $base/front:/opt/front node:lts-buster-slim bash -c "cd /opt/front && npm --registry https://registry.npm.taobao.org install && npm run build"
docker run -t --rm --name buildBookmark -v $base/data/maven/mavenRep:/root/.m2 -v $base/data/maven/settings.xml:/usr/share/maven/conf/settings.xml -v $base/bookMarkService:/code maven:latest bash -c "cd /code && mvn clean install"
#docker-compose up