Skip to content

Commit

Permalink
ci: Add subpath support
Browse files Browse the repository at this point in the history
ci: Add subpath support
  • Loading branch information
drikusroor committed Feb 7, 2024
1 parent 7c44eb4 commit 3f6292c
Show file tree
Hide file tree
Showing 2 changed files with 14 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 backend/static
ls -l backend/upload
10 changes: 9 additions & 1 deletion backend/aml/production_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
# Database
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases

STATIC_URL = '/django_static/'
STATIC_URL = '/server/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
MEDIA_URL = '/server/upload/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'upload')

# Make sure Django runs on subpath /server
FORCE_SCRIPT_NAME = '/server/'

DATABASES = {
'default': {
Expand All @@ -23,6 +29,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 3f6292c

Please sign in to comment.