summaryrefslogtreecommitdiffstats
path: root/commands/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/server.go')
-rw-r--r--commands/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/server.go b/commands/server.go
index ae9375081..94d155ab9 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(viper.GetString("BaseURL"))
+ BaseURL, err := fixURL(baseURL)
if err != nil {
return err
}
@@ -139,7 +139,7 @@ func server(cmd *cobra.Command, args []string) error {
}
// If a Destination is provided via flag write to disk
- if Destination != "" {
+ if destination != "" {
renderToDisk = true
}