mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-18 04:15:15 +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)
|
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)
|
remote_, err := SetupRemote(c)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Fatal(err)
|
logrus.Fatal(err)
|
||||||
|
|
Loading…
Reference in a new issue