Write documentation to serve OpenREM with Gunicorn and NGINX on linux
No description provided.
Comments (29)
-
reporter -
reporter -
reporter -
reporter Starting the docs. refs
#596→ <<cset 13e61cc39ac1>>
-
reporter A few more lines for nginx. refs
#596→ <<cset ce81c91ad064>>
-
reporter Most of the procedure done now. Still need to switch to unix sockets and autostart Gunicorn. Refs
#596→ <<cset f18de2e3378f>>
-
reporter Unix sockets added. Refs
#596→ <<cset de555d8deab9>>
-
@edmcdonagh, is this at a stage where you'd like me to follow the documentation? I have a Linux install of OpenREM that just uses the manage.py runserver at the moment.
-
reporter You could follow along as far as it goes if you like, but it is not finished. I need to add starting Gunicorn as a auto-starting systemd thing and configuring the timeouts for both. Plus log locations and troubleshooting.
Any comments welcome.
-
I'll wait for these docs to be complete before I try them out.
-
reporter First full draft finished. Any comments welcome - could probably do with a consistency check if nothing else. Refs
#596.→ <<cset 4301d35f0fd0>>
-
reporter A few minor corrections to formatting. Refs
#596.→ <<cset e6c22958360d>>
-
reporter Just remembered I need to add in the timeout settings.
-
reporter Added timeout settings and cheats guide. Refs
#596.→ <<cset 9a83387773d3>>
-
reporter Couple of minor tweaks. Refs
#596.→ <<cset 7f3cfe82cd33>>
-
reporter Removing the old webserver text. Refs
#596,#592→ <<cset c68861fbc421>>
-
reporter Set nginx timeout to match gunicorn timeout, also IIS timeout in docs (5 minutes). Refs
#592,#596,#597→ <<cset 05e06d63d822>>
-
reporter Adding a local contents to see how it formats. Refs
#596→ <<cset 68bd6302297e>>
-
I've just used the documentation to setup nginx on Ubuntu. Here's a list of what caused a little bit of bother:
When adding the static files path to
local_settings.py
there's a comment inlocal_settings.py
to terminate the path with a/
. Your document doesn't end in a/
. I put one in, and everything worked fine.Allowed hosts section: it would be a good idea to state that these changes are required in
local_settings.py
When I got to the section about starting Gunicorn automatically the service failed to start. This was because I was running the service as
www-data
rather than my own user; it was also related to the fact that I hadn't updatedlocal_settings.py
with the extractor log details. Once I changed the user to my own name, and updatedlocal_settings.py
it worked perfectly.Thanks.
-
reporter Added in trailing slash for consistency. Refs
#596→ <<cset cb3d7dabf45c>>
-
reporter Made change regarding ref
#597more generic as it was needed for Gunicorn/nginx too (refs#592,#596)→ <<cset 47b889d3bda6>>
-
reporter Addressing the remaining issues from @dplatten's experience of the nginx/gunicorn instructions. Hopefully. Refs
#596→ <<cset b93893d1a104>>
-
reporter A few tweaks for consistency and readability Refs
#596→ <<cset 6b9e03f4d1df>>
-
reporter Minor change to warning text. Refs
#596→ <<cset 2c46e84e7e8e>>
-
reporter Updating changes. Also modified a few capitals for consistency, but didn't go through them all... Refs
#596→ <<cset cc18175dc43d>>
-
reporter - changed status to resolved
Merged in issue596documentGunicornNGINX (pull request #165)
Fixes issue
#596Approved-by: David Platten dplatten@gmail.com
→ <<cset fa35b0eee3a5>>
-
Updated system diagram in the documents to reflect new recommendations on web servers. Also amended database text. References issue
#448, issue#592and issue#596→ <<cset 33b5ea83d5ae>>
-
Removed link to installing Apache - this is referred to in the web server link anyway. References issue
#448, issue#592and issue#596→ <<cset 69357c5ea463>>
-
reporter Merged in issue448UpdateSystemDiagram (pull request #171)
Issue448UpdateSystemDiagram
Approved-by: Ed McDonagh ed@mcdonagh.org.uk
→ <<cset f828c783af9e>>
- Log in to comment
Stub for linux webs server docs refs
#596→ <<cset 13fb44ddbf1b>>