require DRONE_HOST on startup

This commit is contained in:
Brad Rydzewski 2017-07-12 14:48:56 -04:00
parent 7e76fecc3f
commit f7066473c1

View file

@ -397,6 +397,11 @@ func server(c *cli.Context) error {
logrus.SetLevel(logrus.WarnLevel)
}
// must configure the drone_host variable
if c.String("server-host") == "" {
logrus.Fatalln("DRONE_HOST is not properly configured")
}
remote_, err := SetupRemote(c)
if err != nil {
logrus.Fatal(err)