mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05: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
|
||||
f.c.withConf(func(conf *commonConfig) {
|
||||
fs = conf.fs.PublishDir
|
||||
fs = conf.fs.PublishDirServer
|
||||
})
|
||||
|
||||
fi, err := fs.Stat(path)
|
||||
|
|
|
@ -6,6 +6,7 @@ hugo server --renderStaticToDisk &
|
|||
waitServer
|
||||
|
||||
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/mystatic.txt
|
||||
|
|
Loading…
Reference in a new issue