cwtch/server/app/main.go

21 lines
364 B
Go
Raw Normal View History

2018-03-30 21:16:51 +00:00
package main
import (
2018-05-28 18:05:06 +00:00
cwtchserver "cwtch.im/cwtch/server"
"log"
2018-03-30 21:16:51 +00:00
)
const (
serverConfigFile = "serverConfig.json"
)
2018-05-03 22:45:50 +00:00
2018-03-30 21:16:51 +00:00
func main() {
serverConfig := cwtchserver.LoadConfig(serverConfigFile)
2018-05-03 22:45:50 +00:00
2018-03-30 21:16:51 +00:00
server := new(cwtchserver.Server)
log.Printf("starting cwtch server...")
2018-06-03 19:36:20 +00:00
// TODO load params from .cwtch/server.conf or command line flag
server.Run(serverConfig)
2018-06-19 22:38:22 +00:00
}