updated Dockerfile

This commit is contained in:
Marvin Zhang
2019-07-29 12:21:19 +08:00
parent c6f8a5abcd
commit 0b4cc3d6ba
4 changed files with 21 additions and 15542 deletions

View File

@@ -4,7 +4,8 @@ WORKDIR /go/src/app
COPY ./backend .
ENV GO111MODULE on
ENV GOPROXY https://mirrors.aliyun.com/goproxy/
#ENV GOPROXY https://mirrors.aliyun.com/goproxy/
ENV GOPROXY https://goproxy.io
RUN go install -v ./...
@@ -14,7 +15,8 @@ ADD ./frontend /app
WORKDIR /app
# install frontend
RUN npm install -g yarn && yarn install --registry=https://registry.npm.taobao.org
#RUN npm install -g yarn && yarn install --registry=https://registry.npm.taobao.org
RUN npm install -g yarn && yarn install
RUN npm run build:prod

View File

@@ -1,8 +1,14 @@
#!/bin/sh
# replace default api path to new one
jspath=`ls /app/dist/js/app.*.js`
cat ${jspath} | sed "s/localhost:8000/${CRAWLAB_API_ADDRESS}/g" > ${jspath}
if [ "${CRAWLAB_API_ADDRESS}" = "" ];
then
:
else
jspath=`ls /app/dist/js/app.*.js`
cp ${jspath} ${jspath}.bak
sed -i "s/localhost:8000/${CRAWLAB_API_ADDRESS}/g" ${jspath}
fi
# start nginx
service nginx start

15537
frontend/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -314,7 +314,8 @@ export default {
console.log(value)
},
onAdd () {
this.addDialogVisible = true
// this.addDialogVisible = true
this.onAddCustomized()
},
onAddConfigurable () {
this.$store.commit('spider/SET_SPIDER_FORM', {})
@@ -559,6 +560,13 @@ export default {
background: rgba(103, 194, 58, .1);
border: 1px solid rgba(103, 194, 58, .1);
}
.add-spider-item.info {
color: #909399;
background: #f4f4f5;
border: 1px solid #e9e9eb;
}
}
.el-autocomplete {