Does anyone already have code for running a Happstack app as a CGi instead of a HTTP Server?
Searching for a CGI adapter or backend to Happstack, I didn't find anything. The documentation mentions you can do it... but it isn't clear if it works out of the box.
I was able to find the
happstack-fastcgi package. For fun, I tried converting my app to
(
Read more... )
Comments 1
Just compile your application, and throw the binary in your CGI directory. CGI isn't special. It just feeds HTTP requests to an application via some environment variables.
Probably a bad idea though. You will need to make sure that each instance is single threaded and that there can't be race conditions in your state.
Reply
Leave a comment