Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions estela-api/config/settings/build.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from config.settings.base import * # noqa

CREDENTIALS = "local"
ENGINE = "kubernetes"
SPIDERDATA_DB_ENGINE = "mongodb"
4 changes: 4 additions & 0 deletions estela-api/config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from django.urls import include, path
from django.http import HttpResponse
from django.views import View
from django.conf.urls.static import static


class HealthCheckView(View):
Expand All @@ -37,3 +38,6 @@ def get(self, request):
path("", HealthCheckView.as_view()),
]
urlpatterns = urlpatterns + django_external_apps_url

if settings.DEBUG:
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
2 changes: 2 additions & 0 deletions estela-api/docker-conf/Dockerfile-django-api
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN DJANGO_SETTINGS_MODULE=config.settings.build python manage.py collectstatic --noinput

EXPOSE 8000
Loading