Skip to content

Commit

Permalink
Merge pull request #1611 from maykinmedia/fix-uwsgi-static-map
Browse files Browse the repository at this point in the history
Fix broken uWSGI static map
  • Loading branch information
swrichards authored Feb 10, 2025
2 parents 7e99899 + f54f183 commit c30d958
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/docker_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ python src/manage.py migrate
# --- Basic Application Configuration
export UWSGI_MODULE="open_inwoner.wsgi"
export UWSGI_CHDIR="src"
export UWSGI_STATIC_MAP="/static=/app/static /media=/app/media"

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

# Start Server
>&2 echo "Starting server"
exec uwsgi --show-config --strict
exec uwsgi \
--show-config \
--strict \
--static-map /static=/app/static \
--static-map /media=/app/media

0 comments on commit c30d958

Please sign in to comment.