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. David Platten

    @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.

  2. 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.

  3. 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.

  4. Log in to comment