Arc Forumnew | comments | leaders | submitlogin
Howto serve static files with arc web server?
2 points by ChristophRe 4075 days ago | 1 comment
I need some help please.

I saw that you can put images (png, gif, jpg) into the static folder at then the web server serve this files out of this folder.

I want to create a subfolder "js" and a subfolder "lsp" and put some Javascript and some Lisp-Files into this folders.

localhost:8080/js/ascript.js localhost:8080/lsp/alisp.lsp

I does not work. Why?



1 point by akkartik 4074 days ago | link

Can you try it with http://github.com/arclanguage/anarki if you aren't already? Your ascript.js example works with it for me.

To make the .lsp example work you have to modify static-filetype at lib/srv.arc (https://github.com/arclanguage/anarki/blob/31b773d91a/lib/sr...) to handle the new extension. I'm away from my usual machine, so can you send me a pull request if you get it working? :)

-----