This commit is contained in:
YouROK
2020-11-30 23:32:51 +03:00
parent 0569ade7b8
commit ee7902cbb6
5 changed files with 13 additions and 12 deletions

View File

@@ -10,6 +10,8 @@ import (
"github.com/alexflint/go-arg"
"server"
"server/log"
"server/settings"
"server/version"
)
@@ -41,11 +43,11 @@ func main() {
if params.Add != "" {
add()
}
settings.Path = params.Path
Preconfig(params.DontKill)
server.Start(params.Path, params.Port, params.RDB)
fmt.Println(server.WaitServer())
server.Start(params.Port, params.RDB)
log.TLogln(server.WaitServer())
time.Sleep(time.Second * 3)
os.Exit(0)
}