| 1 |
# Test the hugo server command when removing a directory mounted into static. |
| 2 |
# See issue 15174. |
| 3 |
|
| 4 |
hugo server & |
| 5 |
|
| 6 |
waitServer |
| 7 |
|
| 8 |
rm mystatic/foo |
| 9 |
|
| 10 |
sleep 2 |
| 11 |
|
| 12 |
stopServer |
| 13 |
! stderr . |
| 14 |
|
| 15 |
-- hugo.toml -- |
| 16 |
title = "Hugo Server Test" |
| 17 |
baseURL = "https://example.org/" |
| 18 |
disableKinds = ["taxonomy", "term", "sitemap"] |
| 19 |
[[module.mounts]] |
| 20 |
source = "content" |
| 21 |
target = "content" |
| 22 |
[[module.mounts]] |
| 23 |
source = "layouts" |
| 24 |
target = "layouts" |
| 25 |
[[module.mounts]] |
| 26 |
source = "mystatic/foo" |
| 27 |
target = "static/foo" |
| 28 |
-- layouts/all.html -- |
| 29 |
All. |
| 30 |
-- content/p1.md -- |
| 31 |
-- mystatic/foo/static.txt -- |
| 32 |
static |