mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-29 13:21:10 +00:00
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