1
0
Fork 0
empact/bin/empact-server.go

20 lines
283 B
Go
Raw Normal View History

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