mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00: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)
|
||||
}
|
||||
|
||||
build(cmd, args)
|
||||
|
||||
// Watch runs its own server as part of the routine
|
||||
if serverWatch {
|
||||
fmt.Println("Watching for changes in", Config.GetAbsPath(Config.ContentDir))
|
||||
|
Reference in New Issue
Block a user