mirror of
https://github.com/gohugoio/hugo.git
synced 2025-02-16 17:41:07 +00:00
parent
901cd970db
commit
8f293a1855
2 changed files with 2 additions and 1 deletions
|
@ -288,7 +288,7 @@ func (f *fileServer) createEndpoint(i int) (*http.ServeMux, net.Listener, string
|
||||||
}
|
}
|
||||||
var fs afero.Fs
|
var fs afero.Fs
|
||||||
f.c.withConf(func(conf *commonConfig) {
|
f.c.withConf(func(conf *commonConfig) {
|
||||||
fs = conf.fs.PublishDir
|
fs = conf.fs.PublishDirServer
|
||||||
})
|
})
|
||||||
|
|
||||||
fi, err := fs.Stat(path)
|
fi, err := fs.Stat(path)
|
||||||
|
|
|
@ -6,6 +6,7 @@ hugo server --renderStaticToDisk &
|
||||||
waitServer
|
waitServer
|
||||||
|
|
||||||
httpget $HUGOTEST_BASEURL_0 'Title: Hugo Server Test' $HUGOTEST_BASEURL_0
|
httpget $HUGOTEST_BASEURL_0 'Title: Hugo Server Test' $HUGOTEST_BASEURL_0
|
||||||
|
httpget ${HUGOTEST_BASEURL_0}mystatic.txt 'This is a static file.'
|
||||||
|
|
||||||
! exists public/index.html
|
! exists public/index.html
|
||||||
exists public/mystatic.txt
|
exists public/mystatic.txt
|
||||||
|
|
Loading…
Reference in a new issue