From a89b2f41d679117de9f5cb645ec7074b6f61fe93 Mon Sep 17 00:00:00 2001 From: Cameron Moore Date: Fri, 5 Feb 2016 15:30:02 -0600 Subject: [PATCH] commands: Get BaseURL from viper in server mode Fixes #1821 --- commands/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/server.go b/commands/server.go index df75395d2..ae9375081 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 }