-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add nginx+gunicorn/uWSGI conf for better performence #11
Comments
Sure, this would be good to have. We'll probably want to rename the [projectname].conf to apache2.conf to avoid confusion. |
yup |
Hi, this nginx.conf template works in my setup (nginx+gunicorn). Minimal docs is included at the top. Anyone checking, please report if it works or not. |
Thanks, this looks like good start and I'll try it out when I get a chance. Feel free to start a pull request to make merging easier. A couple of other things to do would be to rename the included apache config to If someone with more nginx/gunicorn experience wants to take a look at this that would be great. |
Dear All,
I did not have any luck with uWSGI, either, same problem of not finding a wsgi app. |
Little update: I know that the above issue must be somewhere related to my lack of familiarity with Django, though I got gunicorn and uwsgi going without any issues with Mezzanine and such. The reason, why I am interested, no: keen, on a lightweight solution is that we plan to deploy lowish-spec machines in countries at current risk of the evolving Ebola outbreak, where such optimisations translate into real cost and power savings. Therefore, sorry for my pushing (I know I have not the slightest "right" to do so!), but any pointers would be absolutely terrific, while I am reading up on Django again.... |
I haven't worked with gunicorn, but it looks like you are missing the project name (should be projectname.wsgi, which is a Python module path that resolves to projectname/wsgi.py). That said, if you planning on running the whole wq stack on each machine, you might be able to get by with just using Django's built in ./manage.py runserver. nginx/Apache/etc. are more important when you have multiple web/mobile clients submitting data to a centralized public web server. |
Dear Andrew,
Thank you for the lead, let me look into it. I will keep you updated. Hugely appreciated. Have a nice weekend!
Chris
…On May 24, 2018 8:47:31 PM UTC, "S. Andrew Sheppard" ***@***.***> wrote:
I haven't worked with gunicorn, but it looks like you are missing the
project name (should be projectname.wsgi, which is a Python module path
that resolves to projectname/wsgi.py). That said, if you planning on
running the whole wq stack on each machine, you might be able to get by
with just using Django's built in ./manage.py runserver.
nginx/Apache/etc. are more important when you have multiple web/mobile
clients submitting data to a centralized public web server.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#11 (comment)
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
No description provided.
The text was updated successfully, but these errors were encountered: