lona-web-org / lona

Write responsive web apps in full python
MIT License
528 stars 28 forks source link

Support for gunicorn #472

Closed nacho00112 closed 1 year ago

nacho00112 commented 1 year ago

I can't run lona apps with gunicorn

fscherf commented 1 year ago

Could you provide more information on what you are trying and why you need gunicorn?

nacho00112 commented 1 year ago

Could you provide more information on what you are trying and why you need gunicorn?

I was trying to avoid apache2 because i don't like those long configuration files, but now i discovered that gunicorn does not have what i want

fscherf commented 1 year ago

I recommend nginx :)

nacho00112 commented 1 year ago

I recommend nginx :)

My server provider uses apache2 so i tried to change it but i can't, i can't change the configuration too, the only thing i can do is to put the files like index.html or index.php in a public_html directory, but lona does not work of that way i guess it generates the html dynamically, so i'm considering to talk with the provider about this

fscherf commented 1 year ago

Yeah, I am afraid that won't work. Lona can be used with Apache2 but Lona speaks HTTP and does not create HTML files. If you want to use it with Apache you will need a config similar to this: https://lona-web.org/1.x/deployment/deploying-on-linux.html#id1