empact/bin/empact-server.go

20 lines
283 B
Go
Raw Normal View History

2015-03-05 19:57:36 +07:00
package main
import (
2015-03-29 00:06:01 +07:00
"flag"
2015-03-05 19:57:36 +07:00
"github.com/localhots/empact/config"
"github.com/localhots/empact/db"
"github.com/localhots/empact/server"
)
func main() {
2015-03-29 00:06:01 +07:00
flag.Parse()
config.Load()
2015-03-05 19:57:36 +07:00
if err := db.Connect(config.C().DatabaseURI); err != nil {
panic(err)
}
server.Start()
}