diff --git a/esap/Dockerfile b/esap/Dockerfile index 6f9e91fcf63b4e01bea38b0ddfa9524b1cbac870..7a501fb49891d2f539e135f19395b24845f3a6d3 100644 --- a/esap/Dockerfile +++ b/esap/Dockerfile @@ -10,6 +10,7 @@ RUN pip install --upgrade pip "cython==0.29.14" RUN pip install cryptography RUN pip install -r requirements/prod.txt RUN exec python manage.py collectstatic --settings=esap.settings.statics --no-input + CMD exec gunicorn esap.wsgi_docker:application --bind 0.0.0.0:8000 --workers 3 # build the image like this: diff --git a/esap/esap/settings/docker.py b/esap/esap/settings/docker.py index 49b5d503f6ee95de4743f9e3544f4337e3cc9eb5..95eca6c1c6e877d2a9394f651ada32f7cdf45741 100644 --- a/esap/esap/settings/docker.py +++ b/esap/esap/settings/docker.py @@ -40,4 +40,4 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static') # configuration settings that can be requested through the REST API CONFIGURATION_DIR = os.path.join(BASE_DIR, 'configuration') -CONFIGURATION_FILE = 'esap_default' +CONFIGURATION_FILE = 'esap' diff --git a/esap/esap/settings/statics.py b/esap/esap/settings/statics.py index bed1f823f406c54d161c9e7bfc31c68d7d3aeaee..8504abe207693f5c0e51b04286cb611ce58531e8 100644 --- a/esap/esap/settings/statics.py +++ b/esap/esap/settings/statics.py @@ -24,6 +24,3 @@ INSTALLED_APPS = [ STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static') -# configuration settings that can be requested through the REST API -CONFIGURATION_DIR = os.path.join(BASE_DIR, 'configuration') -CONFIGURATION_FILE = 'esap' \ No newline at end of file