testscripts/server/server__delete_static_file_publish.txt
raw| 1 | # A deleted static file should be removed from the publish dir. |
| 2 | |
| 3 | hugo server & |
| 4 | |
| 5 | waitServer |
| 6 | |
| 7 | exists public/static.txt |
| 8 | |
| 9 | rm static/static.txt |
| 10 | |
| 11 | sleep 2 |
| 12 | |
| 13 | ! exists public/static.txt |
| 14 | |
| 15 | stopServer |
| 16 | ! stderr . |
| 17 | |
| 18 | -- hugo.toml -- |
| 19 | title = "Hugo Server Test" |
| 20 | baseURL = "https://example.org/" |
| 21 | disableKinds = ["taxonomy", "term", "sitemap"] |
| 22 | -- layouts/all.html -- |
| 23 | All. |
| 24 | -- content/p1.md -- |
| 25 | -- static/static.txt -- |
| 26 | static |