diff --git a/.github/workflows/podman.yml b/.github/workflows/podman.yml index fbb3b9df1..d4ec65ce5 100644 --- a/.github/workflows/podman.yml +++ b/.github/workflows/podman.yml @@ -54,4 +54,8 @@ jobs: - name: Check Podman images run: podman-compose -f docker-compose-deploy.yml ps - name: Check logs - run: podman-compose -f docker-compose-deploy.yml logs \ No newline at end of file + run: podman-compose -f docker-compose-deploy.yml logs + - name: Check if static files are present in backend/static and backend/upload + run: | + ls -l /home/github-runner/podman-volumes/server-static + ls -l /home/github-runner/podman-volumes/server-uploads \ No newline at end of file diff --git a/backend/aml/production_settings.py b/backend/aml/production_settings.py index 24bb4dfa4..6585c6a94 100644 --- a/backend/aml/production_settings.py +++ b/backend/aml/production_settings.py @@ -6,7 +6,11 @@ # Database # https://docs.djangoproject.com/en/3.0/ref/settings/#databases -STATIC_URL = '/django_static/' +STATIC_ROOT = '/static/' +MEDIA_ROOT = '/upload/' + +# Make sure Django runs on subpath /server +FORCE_SCRIPT_NAME = '/server/' DATABASES = { 'default': { @@ -23,6 +27,8 @@ CSRF_COOKIE_SAMESITE = 'None' SESSION_COOKIE_SECURE = True CSRF_COOKIE_SECURE = True +SESSION_COOKIE_PATH = '/server/' +CSRF_COOKIE_PATH = '/server/' LOGGING = { 'version': 1,