Write documentation to serve OpenREM with Gunicorn and NGINX on linux

Issue #596 resolved
Ed McDonagh
created an issue

No description provided.

Comments (29)

  1. Ed McDonagh 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.

  2. David Platten

    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 in local_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 updated local_settings.py with the extractor log details. Once I changed the user to my own name, and updated local_settings.py it worked perfectly.

    Thanks.

  3. Log in to comment