mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-23 17:03:50 +00:00
server command now builds prior to serving
This commit is contained in:
parent
4993152dda
commit
e6ace71fec
1 changed files with 2 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue