adjustment
This commit is contained in:
parent
1d791316f2
commit
ceae62de19
11
Makefile
11
Makefile
@ -6,8 +6,13 @@ build: clean
|
||||
run:
|
||||
bee run -gendoc=true -downdoc=true
|
||||
|
||||
dev:
|
||||
bee generate routers && HTTPPORT=8088 bee run -gendoc=true -downdoc=true
|
||||
purge:
|
||||
lsof -t -i:8088 | xargs kill | true
|
||||
|
||||
run-dev:
|
||||
bee generate routers && bee run -gendoc=true -downdoc=true -runmode=prod
|
||||
|
||||
dev: purge run-dev
|
||||
|
||||
debug:
|
||||
bee run -downdebug -gendebug
|
||||
@ -27,4 +32,4 @@ publish-registry:
|
||||
|
||||
all: clean docker publish-kind publish-registry
|
||||
|
||||
.PHONY: build run clean docker publish-kind publish-registry
|
||||
.PHONY: build run clean docker publish-kind publish-registry
|
||||
|
@ -1,5 +1,5 @@
|
||||
appname = oc-workflow
|
||||
httpport = 8080
|
||||
httpport = 8088
|
||||
runmode = dev
|
||||
autorender = false
|
||||
copyrequestbody = true
|
||||
|
@ -17,7 +17,10 @@ type VersionController struct {
|
||||
// @Success 200
|
||||
// @router / [get]
|
||||
func (c *VersionController) GetAll() {
|
||||
c.Data["json"] = map[string]string{"version": "1"}
|
||||
c.Data["json"] = map[string]string{
|
||||
"service": "oc-workflow",
|
||||
"version": "1",
|
||||
}
|
||||
c.ServeJSON()
|
||||
}
|
||||
|
||||
|
@ -20,9 +20,9 @@ services:
|
||||
- "traefik.http.routers.workflow.middlewares=workflow-rewrite"
|
||||
- "traefik.http.middlewares.workflow.forwardauth.address=http://oc-auth:8080/oc/forward"
|
||||
networks:
|
||||
- catalog
|
||||
- oc
|
||||
|
||||
networks:
|
||||
catalog:
|
||||
oc:
|
||||
external: true
|
||||
|
||||
|
@ -2,7 +2,5 @@
|
||||
"MONGO_URL":"mongodb://mongo:27017/",
|
||||
"MONGO_DATABASE":"DC_myDC",
|
||||
"BOOKING_PATH": ":8092",
|
||||
"NATS_URL": "nats://nats:4222",
|
||||
"HOSTNAME": "oc-workflow",
|
||||
"PORT" : 8080
|
||||
"NATS_URL": "nats://nats:4222"
|
||||
}
|
BIN
oc-workflow
BIN
oc-workflow
Binary file not shown.
@ -3,5 +3,5 @@
|
||||
"MONGO_DATABASE":"DC_myDC",
|
||||
"BOOKING_PATH": ":8092",
|
||||
"NATS_URL": "nats://localhost:4222",
|
||||
"port" : 8080
|
||||
"port" : 8088
|
||||
}
|
Loading…
Reference in New Issue
Block a user