Skip to content

How do I deploy the OEP for production? #882

Answered by wingechr
pajot asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Stephen.

the oep uses the python django framework. There should be a ton of tutorials how to set up django for your web server of choice.

In general:

  • point your webserver to the main wsgi script (oeplatform/wsgi.py)
  • make sure that the virtual environment is also loaded.
  • make sure the static files are served correctly

This is how I would set it up with apache2, (I am not too good with nginx):


# main wsgi script
<Directory OEP_INSTALL_DIR/oeplatform>
        <Files wsgi.py>
                Require all granted
        </Files>
</Directory>

# static files
Alias /static/ OEP_INSTALL_DIR/static/
<Directory  OEP_INSTALL_DIR/static>
        Require all granted
</Directory>

# wsgi process …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pajot
Comment options

@wingechr
Comment options

Answer selected by pajot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants