hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit a89b2f41d679117de9f5cb645ec7074b6f61fe93
parent 792b2438ed103a76ff50a3ea313b1444222d43e1
Author: Cameron Moore <moorereason@gmail.com>
Date:   Fri,  5 Feb 2016 15:30:02 -0600

commands: Get BaseURL from viper in server mode

Fixes #1821

Diffstat:
Mcommands/server.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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
 	}