r/oilshell • • Jun 18 '24

Comments on Scripting, CGI, and FastCGI

https://www.oilshell.org/blog/2024/06/cgi.html
3 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/oilshell Jun 18 '24

Oh yes, it's because OpalStack supports uwsgi natively:

https://docs.opalstack.com/topic-guides/python/

But it doesn't natively support the gunicorn solution. That would be the same as running a Go HTTP server, but there is (bizarrely) no way to supervise those long running HTTP servers -- they want you to use a cron job ??

https://community.opalstack.com/d/695-golang-in-opalstack

And OpalStack and Mythic Beasts are the ONLY shared hosts I found that have a non-FastCGI non-passenger way of doing long-running Python processes.

(Dreamhost just deprecated passenger phusion, and I feel like the others just advertise it because there is some half-baked support in cPanel. But they don't support it)

...

Yeah it's possible we could make use of serverless/containers in a cloud-agnostic way. We are doing that with Github Actions and sourcehut for CI.

Although I actually want to move off of Docker ... the build language is not really expressive enough, so everything ends up kind of slow and big. I ended up with a ton of shell wrapping Docker, and being called by Docker, which seems "par for the course" for optimized container setups.

Though to Docker's credit, we are able to use Podman on Debian on sourcehut, and Docker on Ubuntu on Github Actions, and it works fine on both (except for some minor things we could fix).


Thanks for the feedback! Let me see if I can clarify that part