2018-05-27 22:40:42 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
exitIfError(createLogger())
|
|
|
|
exitIfError(parseConfig())
|
|
|
|
exitIfError(connectDB())
|
|
|
|
exitIfError(performMigrations())
|
|
|
|
exitIfError(smtpConfigure())
|
2018-06-09 17:50:01 +08:00
|
|
|
exitIfError(smtpTemplatesLoad())
|
2018-05-27 22:40:42 +08:00
|
|
|
exitIfError(oauthConfigure())
|
|
|
|
exitIfError(createMarkdownRenderer())
|
2018-06-03 16:33:24 +08:00
|
|
|
exitIfError(setupSigintCleanup())
|
2018-05-27 22:40:42 +08:00
|
|
|
|
|
|
|
exitIfError(serveRoutes())
|
|
|
|
}
|