Compare commits

...

2 Commits

Author SHA1 Message Date
b955f583f4
Merge branch 'main' of https://git.cubetiqs.com/cubetiqlabs/zengo into main
All checks were successful
continuous-integration/drone/push Build is passing
2021-09-27 18:09:03 +07:00
5987d1e892
Updated app and add script 2021-09-27 18:08:36 +07:00
4 changed files with 8 additions and 2 deletions

2
.gitignore vendored
View File

@ -13,3 +13,5 @@
# Dependency directories (remove the comment below to include it) # Dependency directories (remove the comment below to include it)
# vendor/ # vendor/
zengo

View File

@ -59,6 +59,7 @@ type App struct {
} }
func (a *App) Run(config *config.Config) error { func (a *App) Run(config *config.Config) error {
a.Router = setupRouter() r := setupRouter()
a.Router = r
return a.Router.Run(fmt.Sprintf("%s:%d", config.App.Addr, config.App.Port)) return a.Router.Run(fmt.Sprintf("%s:%d", config.App.Addr, config.App.Port))
} }

View File

@ -8,6 +8,6 @@ import (
func main() { func main() {
config := config.GetConfig() config := config.GetConfig()
app := &app.App{} app := app.App{}
app.Run(config) app.Run(config)
} }

3
run Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh -e
go run main.go