mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
updated Dockerfile
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
15537
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user