blob: 582c0cccaf053f7faf28686f51a0e556bc8687bf (
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)
}
|