site-generator icon indicating copy to clipboard operation
site-generator copied to clipboard

Auto-refresh pages hosted on test server

Open AlexCharlton opened this issue 12 years ago • 2 comments

Requires Javascript injection.

AlexCharlton avatar Aug 27 '13 20:08 AlexCharlton

I will work this out using the same code injected by atom-live-server extension.

ghost avatar Aug 07 '18 17:08 ghost

Apparently the simpler solution is to duplicate the file before injection. I randomly tried to write a custom version of hunchentoot’s handler for static files to avoid the use of a tmp directory but it was a big pain in the ass to get something working with curl.

I might not have thought it through but I’ll go with the temporary files for now.

(Wow, been a month)

Edit : https://github.com/AlexCharlton/site-generator/blob/18834db0b0fade45fe5ebb9a9fcda605c6472c19/src/test-server.lisp#L42-L51

ghost avatar Sep 15 '18 22:09 ghost