mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-13 20:24:00 +02:00
server command now builds prior to serving
This commit is contained in:
@@ -45,6 +45,8 @@ func server(cmd *cobra.Command, args []string) {
|
|||||||
Config.BaseUrl = "http://localhost:" + strconv.Itoa(serverPort)
|
Config.BaseUrl = "http://localhost:" + strconv.Itoa(serverPort)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
build(cmd, args)
|
||||||
|
|
||||||
// Watch runs its own server as part of the routine
|
// Watch runs its own server as part of the routine
|
||||||
if serverWatch {
|
if serverWatch {
|
||||||
fmt.Println("Watching for changes in", Config.GetAbsPath(Config.ContentDir))
|
fmt.Println("Watching for changes in", Config.GetAbsPath(Config.ContentDir))
|
||||||
|
Reference in New Issue
Block a user