From: Cameron Moore Date: Fri, 5 Feb 2016 21:30:02 +0000 (-0600) Subject: commands: Get BaseURL from viper in server mode X-Git-Tag: v0.16~381 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a89b2f41d679117de9f5cb645ec7074b6f61fe93;p=brevno-suite%2Fhugo commands: Get BaseURL from viper in server mode Fixes #1821 --- diff --git a/commands/server.go b/commands/server.go index df75395d..ae937508 100644 --- a/commands/server.go +++ b/commands/server.go @@ -128,7 +128,7 @@ func server(cmd *cobra.Command, args []string) error { viper.Set("port", serverPort) - BaseURL, err := fixURL(BaseURL) + BaseURL, err := fixURL(viper.GetString("BaseURL")) if err != nil { return err }