Skip to content

Commit f54f183

Browse files
committed
Fix broken uWSGI static map
We were trying to set multiple static-map paths via an env var, which the docs clearly state is not permitted. Set them via CLI args instead.
1 parent 7e99899 commit f54f183

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bin/docker_start.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ python src/manage.py migrate
2323
# --- Basic Application Configuration
2424
export UWSGI_MODULE="open_inwoner.wsgi"
2525
export UWSGI_CHDIR="src"
26-
export UWSGI_STATIC_MAP="/static=/app/static /media=/app/media"
2726

2827
# --- Process Management
2928
# Allow for better worker coordination and graceful shutdowns for unresponsive workers
@@ -60,4 +59,8 @@ export UWSGI_BUFFER_SIZE=${UWSGI_BUFFER_SIZE:-65535}
6059

6160
# Start Server
6261
>&2 echo "Starting server"
63-
exec uwsgi --show-config --strict
62+
exec uwsgi \
63+
--show-config \
64+
--strict \
65+
--static-map /static=/app/static \
66+
--static-map /media=/app/media

0 commit comments

Comments
 (0)