Skip to content

Commit

Permalink
Merge pull request #147 from EarthSchlange/fix_static_files_for_produ…
Browse files Browse the repository at this point in the history
…ction

Added static-map for media urls.
  • Loading branch information
Michael Hiiva authored Feb 14, 2021
2 parents 77c58c6 + 0853919 commit b69d566
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agagd/agagd/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
# Static Pages
url(r'^information/$', agagd_views.information),
url(r'^qualifications/$', agagd_views.qualifications)
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
]
2 changes: 1 addition & 1 deletion scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ if $LOAD_FIXTURES == "true"; then
python manage.py loaddata /tmp/fake_agagd_data.json
fi

uwsgi --http-socket 0.0.0.0:3031 --module agagd.wsgi --static-map /static=/tmp/static/
uwsgi --http-socket 0.0.0.0:3031 --module agagd.wsgi --static-map /static=/tmp/static/ --static-map /media=/srv/media

0 comments on commit b69d566

Please sign in to comment.