Skip to content

Commit

Permalink
commands: Get BaseURL from viper in server mode
Browse files Browse the repository at this point in the history
  • Loading branch information
moorereason authored and tychoish committed Aug 13, 2017
1 parent 1a5077a commit cd42a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit cd42a64

Please sign in to comment.