mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-15 19:55:25 +00:00
require DRONE_HOST on startup
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user