adjustment
This commit is contained in:
parent
fe5163b3d9
commit
0cd3a9457e
11
Makefile
11
Makefile
@ -6,8 +6,13 @@ build: clean
|
|||||||
run:
|
run:
|
||||||
bee run -gendoc=true -downdoc=true
|
bee run -gendoc=true -downdoc=true
|
||||||
|
|
||||||
dev:
|
purge:
|
||||||
bee generate routers && HTTPPORT=8093 bee run -gendoc=true -downdoc=true
|
lsof -t -i:8093 | xargs kill | true
|
||||||
|
|
||||||
|
run-dev:
|
||||||
|
bee generate routers && bee run -gendoc=true -downdoc=true -runmode=prod
|
||||||
|
|
||||||
|
dev: purge run-dev
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
bee run -downdebug -gendebug
|
bee run -downdebug -gendebug
|
||||||
@ -27,4 +32,4 @@ publish-registry:
|
|||||||
|
|
||||||
all: docker publish-kind publish-registry
|
all: 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-peer
|
appname = oc-peer
|
||||||
httpport = 8080
|
httpport = 8093
|
||||||
runmode = dev
|
runmode = dev
|
||||||
autorender = false
|
autorender = false
|
||||||
copyrequestbody = true
|
copyrequestbody = true
|
||||||
|
@ -14,6 +14,9 @@ type VersionController struct {
|
|||||||
// @Success 200
|
// @Success 200
|
||||||
// @router / [get]
|
// @router / [get]
|
||||||
func (c *VersionController) GetAll() {
|
func (c *VersionController) GetAll() {
|
||||||
c.Data["json"] = map[string]string{"version": "1"}
|
c.Data["json"] = map[string]string{
|
||||||
|
"service": "oc-peer",
|
||||||
|
"version": "1",
|
||||||
|
}
|
||||||
c.ServeJSON()
|
c.ServeJSON()
|
||||||
}
|
}
|
||||||
|
@ -18,8 +18,8 @@ services:
|
|||||||
- 8093:8080
|
- 8093:8080
|
||||||
container_name: oc-peer
|
container_name: oc-peer
|
||||||
networks:
|
networks:
|
||||||
- catalog
|
- oc
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
catalog:
|
oc:
|
||||||
external: true
|
external: true
|
@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"MONGO_URL":"mongodb://mongo:27017/",
|
"MONGO_URL":"mongodb://mongo:27017/",
|
||||||
"MONGO_DATABASE":"DC_myDC",
|
"MONGO_DATABASE":"DC_myDC",
|
||||||
"NATS_URL": "nats://nats:4222",
|
"NATS_URL": "nats://nats:4222"
|
||||||
"PORT" : 8080
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user