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" PATH="$PATH:${APP_HOME}/bin"
ADD dist/${APP_NAME} ${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 \ RUN apk add --no-cache curl \
&& chmod +x ${APP_HOME}/bin/*.sh \ && chmod +x ${APP_HOME}/bin/*.sh \

View File

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

View File

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

View File

@ -1,12 +1,12 @@
package servlet package servlet
import ( 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" oogws "git.loafle.net/overflow/overflow_gateway_websocket/server"
) )
func ServletInit(sh oogws.ServerHandler) { func ServletInit(sh oogws.ServerHandler) {
web.ServletInit(sh) webapp.ServletInit(sh)
} }
func ServletDestroy() { func ServletDestroy() {

View File

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

View File

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

View File

@ -1,4 +1,4 @@
package web package webapp
import ( import (
"fmt" "fmt"
@ -10,7 +10,7 @@ import (
) )
const ( const (
Name = "web" Name = "webapp"
) )
var ( var (
@ -20,7 +20,7 @@ var (
func ServletInit(sh oogws.ServerHandler) { func ServletInit(sh oogws.ServerHandler) {
cfg = oogwc.Config.Servlets[Name] cfg = oogwc.Config.Servlets[Name]
if nil == cfg { 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() rpcGH := newGatewayRPCHandler()