Make env variables required
This commit is contained in:
parent
51030ac162
commit
ccb34d4452
3 changed files with 8 additions and 5 deletions
|
@ -106,6 +106,9 @@ func (s *Server) Initialise(fillWorld bool) (err error) {
|
|||
s.sync.Add(1)
|
||||
|
||||
// Connect to the accountant
|
||||
if len(accountantAddress) == 0 {
|
||||
log.Fatal("must set ACCOUNTANT_ADDRESS")
|
||||
}
|
||||
log.Printf("Dialing accountant on %s\n", accountantAddress)
|
||||
s.clientConn, err = grpc.Dial(accountantAddress, grpc.WithInsecure())
|
||||
if err != nil {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue