commands: Get BaseURL from viper in server mode

Fixes #1821
This commit is contained in:
Cameron Moore 2016-02-05 15:30:02 -06:00
parent 792b2438ed
commit a89b2f41d6

View file

@ -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
}