Debian Codegraph @

testscripts/server/server__delete_static_file_mount.txt

raw
1 # Test the hugo server command when removing a file mounted into static.
2 # See issue 15174.
3
4 hugo server &
5
6 waitServer
7
8 rm myfiles/robots.txt
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 = "myfiles/robots.txt"
27 target = "static/robots.txt"
28 -- layouts/all.html --
29 All.
30 -- content/p1.md --
31 -- myfiles/robots.txt --
32 robots