Skip to content

Commit

Permalink
ci: Add subpath support
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Feb 7, 2024
1 parent 7c44eb4 commit d9f5362
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/podman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
8 changes: 7 additions & 1 deletion backend/aml/production_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': {
Expand All @@ -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,
Expand Down

0 comments on commit d9f5362

Please sign in to comment.