Fixed #301. LiveReload works on any port now.

This commit is contained in:
spf13 2014-05-28 19:01:24 -04:00
parent 4076d77029
commit 7a8b754cad
2 changed files with 9 additions and 2 deletions

View file

@ -83,6 +83,8 @@ func server(cmd *cobra.Command, args []string) {
serverPort = sp.Port
}
viper.Set("port", serverPort)
if serverAppend {
viper.Set("BaseUrl", strings.TrimSuffix(BaseUrl, "/")+":"+strconv.Itoa(serverPort))
} else {