blob: 9df291741e413d727b3cd3320048db06ab47d8e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package main
import (
"log"
)
func main() {
// read all sources of runtime configuration (e.g. CLI flags and config file)
config := GetRuntimeConfig()
// print start message
log.Printf("Starting ceres with config file '%s'\n", config.Path)
// initialize database
db := InitDatabase(config.Database)
// start web server
RunServer(config.Http, &db)
}
|