4 ms·
I still have cgi scripts running, I assume, somewhere. Sometimes you just need a single file that does a few things and mostly behaves like a webpage. It does
by at_a_remove 6y ago
I still have cgi scripts running, I assume, somewhere.
Sometimes you just need a single file that does a few things and mostly behaves like a webpage. It doesn't need to be deployed or managed or anything. I had this one that served approximately seven requests on average for over a decade. It's simple. It doesn't need any love. It's in the documentation for the overall site because I wrote the documentation, but it isn't "omg this needs an APP and a BACK END and we have to worry about SCALING."
I still have a book somewhere on CGI with Perl and C, from the 1990s. Probably due for a purge.
- maccard 6y agoMy go-to for that now is python -m http.server, with nginx if i need anything more complicated.
- at_a_remove 6y agoI may have to look into it since python is deprecating the cgi module, to my great annoyance. Or maybe not. I seem to have gotten out of the web business at the right time. It's gone in a direction that makes me grind my teeth.