This commit is contained in:
crusader 2017-12-15 18:28:53 +09:00
parent 27a23519ed
commit 01d39c7d64
10 changed files with 14 additions and 14 deletions

View File

@ -9,7 +9,7 @@ ENV APP_CONFIG_PATH="${APP_HOME}/config" \
PATH="$PATH:${APP_HOME}/bin"
ADD dist/${APP_NAME} ${APP_HOME}/bin/
ADD _docker/bin/*.sh ${APP_HOME}/bin/
ADD build/docker/bin/*.sh ${APP_HOME}/bin/
RUN apk add --no-cache curl \
&& chmod +x ${APP_HOME}/bin/*.sh \

View File

@ -1,6 +1,6 @@
{
"server": {
"name": "Gateway Web APP",
"name": "Gateway WebApp",
"network": "tcp4",
"addr": ":80",
"tls": false,
@ -38,8 +38,8 @@
}
},
"servlets": {
"web": {
"entry": "/web",
"webapp": {
"entry": "/webapp",
"socket": {
"maxMessageSize": 8192,
"writeTimeout": 0,

View File

@ -1,6 +1,6 @@
{
"server": {
"name": "Gateway Web APP",
"name": "Gateway WebApp",
"network": "tcp4",
"addr": ":19090",
"tls": false,
@ -38,8 +38,8 @@
}
},
"servlets": {
"web": {
"entry": "/web",
"webapp": {
"entry": "/webapp",
"socket": {
"maxMessageSize": 8192,
"writeTimeout": 0,

View File

@ -1,12 +1,12 @@
package servlet
import (
"git.loafle.net/overflow/overflow_gateway_webapp/servlet/web"
"git.loafle.net/overflow/overflow_gateway_webapp/servlet/webapp"
oogws "git.loafle.net/overflow/overflow_gateway_websocket/server"
)
func ServletInit(sh oogws.ServerHandler) {
web.ServletInit(sh)
webapp.ServletInit(sh)
}
func ServletDestroy() {

View File

@ -1,4 +1,4 @@
package web
package webapp
import (
"fmt"

View File

@ -1,4 +1,4 @@
package web
package webapp
import (
"git.loafle.net/commons_go/websocket_fasthttp/websocket"

View File

@ -1,4 +1,4 @@
package web
package webapp
import (
"fmt"
@ -10,7 +10,7 @@ import (
)
const (
Name = "web"
Name = "webapp"
)
var (
@ -20,7 +20,7 @@ var (
func ServletInit(sh oogws.ServerHandler) {
cfg = oogwc.Config.Servlets[Name]
if nil == cfg {
logging.Logger().Panic(fmt.Sprintf("Webapp: config of servlet[%s] is not exist", Name))
logging.Logger().Panic(fmt.Sprintf("WebApp: config of servlet[%s] is not exist", Name))
}
rpcGH := newGatewayRPCHandler()