require DRONE_HOST on startup
This commit is contained in:
parent
7e76fecc3f
commit
f7066473c1
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue