Assuming we want to run the app at https://foo.bar/podcasts
export BASE_URL=https://foo.bar
export PODCAST_DIR=/var/podcasts
# Note pipenv automatically loads environment from .env file
pipenv run uwsgi \
--http :8006 \
--processes 1 \
--threads 5 \
--manage-script-name \
--mount "/podcasts=app.py"
The podcast feed is available at /feed (i.e. https://foo.bar/podcasts/feed in the example above)