4 ms·
I mean `claude -p "spin up a python webserver in this directory please"` or alternately `python -m http.server 8080 --bind 127.0.0.1 --directory .` is not hard
by vessenes 8mo ago
I mean `claude -p "spin up a python webserver in this directory please"` or alternately `python -m http.server 8080 --bind 127.0.0.1 --directory .` is not hard
- chungy 8mo agoalthttpd is even easier. :)
- nunobrito 8mo agoSure, but opening ports tends to be a headache when all you want to do is view the contents. On this case I wonder if the format can be further optimized. For example, .js files are supported for loading locally and albeit a very inefficient way to load assets, it could overcome this local disk limitation and nobody reads the HTML source code in either way so it won't need to win any code beauty contests. I'll later look into this theory and ping the author in case it works.
- p410n3 8mo ago> For example, .js files are supported for loading locally Technically yes, but last time i tried that it gives you CORS errors now. You can start your browser with CORS disabled, but that makes sharing your .html file impossible. So back we go to inlining stuff :)
- nunobrito 8mo agoYep, inlining it seems. :-(
- WorldMaker 8mo ago`npx http-server` anywhere node is installed