diff options
author | Cameron Moore <moorereason@gmail.com> | 2016-02-05 15:30:02 -0600 |
---|---|---|
committer | Cameron Moore <moorereason@gmail.com> | 2016-02-05 20:38:02 -0600 |
commit | a89b2f41d679117de9f5cb645ec7074b6f61fe93 (patch) | |
tree | 724f798e29fe58ff30dce5df3903ccadc7ee5582 /commands | |
parent | 792b2438ed103a76ff50a3ea313b1444222d43e1 (diff) |
commands: Get BaseURL from viper in server mode
Fixes #1821
Diffstat (limited to 'commands')
-rw-r--r-- | commands/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |