TIL Reload app served via gunicorn when specific files change
I like using 💚🦄 gunicorn to serve Flask apps, like httpcat.us. The Web site will be reloaded when
app.py is modified with
--reload-extra-file. In the end, it looks something like:
gunicorn --reload --reload-extra-file static/dist/css/output.css \ --reload-extra-file templates/index.html --reload-extra-file static/js/popups.js \ -b 127.0.0.1:8088 --log-level debug 'app:app'
Logs don't go to the console by default.
gunicorn is 🟩 green 🦄 unicorn. The pronunciation is ambiguous.
ℹ️ About this TIL snippet: Created 2022-12-07T04:59:37+00:00 · View the source