yihui / servr

A simple HTTP server in R
https://cran.rstudio.com/package=servr
278 stars 35 forks source link

httd() doesn't notice changes #19

Closed hadley closed 9 years ago

hadley commented 9 years ago

I'm not sure how to debug this, but when I run httd("md") and modify a file, nothing happens.

yihui commented 9 years ago

httd() is a purely static server, and it does not watch the directory for changes or compile anything. Perhaps you can drop a Makefile under the directory, and call servr::make(), e.g. https://github.com/yihui/servr/blob/master/inst/examples/make2/Makefile

hadley commented 9 years ago

Oh nice, that's exactly what I was looking for! (Already had a make file)