Make env variables required

This commit is contained in:
Marc Di Luzio 2020-06-13 10:42:59 +01:00
parent 51030ac162
commit ccb34d4452
3 changed files with 8 additions and 5 deletions
cmd/rove-server

View file

@ -35,6 +35,10 @@ func InnerMain() {
return
}
if len(address) == 0 {
log.Fatalf("Must set HOST_ADDRESS")
}
log.Printf("Initialising version %s...\n", version.Version)
// Set the persistence path