Commit d04a2bd 1 parent 98714c0 commit d04a2bd Copy full SHA for d04a2bd
File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ uwsgi_port=${UWSGI_PORT:-8000}
13
13
uwsgi_processes=${UWSGI_PROCESSES:- 4}
14
14
uwsgi_threads=${UWSGI_THREADS:- 1}
15
15
16
+ mountpoint=${SUBPATH:-/ }
17
+
16
18
until pg_isready; do
17
19
>&2 echo " Waiting for database connection..."
18
20
sleep 1
@@ -26,10 +28,11 @@ python src/manage.py migrate
26
28
27
29
# Start server
28
30
>&2 echo " Starting server"
29
- exec uwsgi \
31
+ uwsgi \
30
32
--http :$uwsgi_port \
31
33
--http-keepalive \
32
- --module openklant.wsgi \
34
+ --manage-script-name \
35
+ --mount $mountpoint =openklant.wsgi:application \
33
36
--static-map /static=/app/static \
34
37
--static-map /media=/app/media \
35
38
--chdir src \
Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ services:
26
26
- ALLOWED_HOSTS=*
27
27
- CACHE_DEFAULT=redis:6379/0
28
28
- CACHE_AXES=redis:6379/0
29
- - SECRET_KEY=${SECRET_KEY:-django-insecure-$8s@b*ds4t84-q_2#c0j0506@!l2q6r5_pq5e!vm^_9c*#^66b}
29
+ - SUBPATH=${SUBPATH:-/}
30
+ - SECRET_KEY=${SECRET_KEY:-django-insecure-f8s@b*ds4t84-q_2#c0j0506@!l2q6r5_pq5e!vm^_9c*#^66b}
30
31
- CELERY_BROKER_URL=redis://redis:6379/0
31
32
- CELERY_RESULT_BACKEND=redis://redis:6379/0
32
33
- NOTIFICATIONS_DISABLED=True
You can’t perform that action at this time.
0 commit comments