Subpath deployment - usnistgov/NEMO GitHub Wiki
NEMO can be deployed on a subpath/subfolder nemo
, as long as you set the following variables:
- in
settings.py
:
STATIC_URL = '/nemo/static/'
MEDIA_URL = '/nemo/media/'
FORCE_SCRIPT_NAME = '/nemo'
-
make sure the
location
in nginx is set to/nemo
-
and set the environment variable
GUNICORN_SCRIPT_NAME
to/nemo
in docker/docker-compose