updated Jenkinsfile

This commit is contained in:
Marvin Zhang
2019-08-05 20:45:42 +08:00
parent e48c8ddb85
commit 89ed39eff3
3 changed files with 11 additions and 8 deletions

6
Jenkinsfile vendored
View File

@@ -12,11 +12,11 @@ pipeline {
script {
if (env.GIT_BRANCH == 'develop') {
env.MODE = 'develop'
env.BASE_URL = '/dev'
} else if (env.GIT_BRANCH == 'master') {
env.MODE = 'production'
} else {
env.MODE = 'test'
}
env.BASE_URL = '/demo'
}
}
}
}

3
frontend/vue.config.js Normal file
View File

@@ -0,0 +1,3 @@
module.exports = {
publicPath: process.env.BASE_URL || '/'
}

View File

@@ -3,14 +3,14 @@ services:
master:
image: tikazyq/crawlab:latest
environment:
CRAWLAB_API_ADDRESS: "crawlab.cn/dev/api"
CRAWLAB_API_ADDRESS: "crawlab.cn/api"
CRAWLAB_SERVER_MASTER: "Y"
CRAWLAB_MONGO_HOST: "mongo"
CRAWLAB_REDIS_ADDRESS: "redis"
CRAWLAB_LOG_PATH: "/var/logs/crawlab"
ports:
- "8088:8080" # frontend
- "8008:8000" # backend
- "8080:8080" # frontend
- "8000:8000" # backend
depends_on:
- mongo
- redis
@@ -27,9 +27,9 @@ services:
image: mongo:latest
restart: always
ports:
- "27019:27017"
- "27017:27017"
redis:
image: redis:latest
restart: always
ports:
- "6389:6379"
- "6379:6379"