mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
updated Jenkinsfile
This commit is contained in:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -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
3
frontend/vue.config.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
publicPath: process.env.BASE_URL || '/'
|
||||
}
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user