mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
Fixed #301. LiveReload works on any port now.
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user