Not using production WSGI server
See original GitHub issueAny reason not to using something like gunicorn instead of the default flask.serve? At the very least, it will get rid of the warning message that always comes up in the logs:
* Serving Flask app "aw-server" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: off
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Flask at first run: Do not use the development server in a ...
The development server is not intended for use in production. It is not designed to be particularly efficient, stable, or secure. Use a ......
Read more >Deploy to Production — Flask Documentation (2.2.x)
When Flask detects that it's installed (not in editable mode), it uses a different directory for the instance ... Instead, use a production...
Read more >WARNING: Do not use the development server in a ... - GitHub
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. Debug mode: off...
Read more >Message: WARNING: This is a development server. Do not ...
Hello, I am trying to practice first example in tutorial and I received following error message: Serving Flask app “main” (lazy loading) ...
Read more >Flask in Production - Playground
WARNING: Do not use the development server in a production environment. Use a production WSGI server instead.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Using something like gunicorn is probably a good idea, but I’m really not sure if there’d be any noticeable difference. The only issue with the built-in WSGI server is that “it doesn’t scale well” (according to docs), but scale isn’t really an issue here (I think).
Hey there. I’ve just “found” ActivityWatch yesterday and thought it be a great idea to try if for myself. Installed it through AUR and got spooked a bit by the very prominent red “WARNING: This is a development server. Do not use it in a production deployment.” followed by the suggestion “Use a production WSGI server instead.”.
If I understand the above thread correctly, this functions “as designed” and a simple user does not need to concern himself with it. Maybe you could either mention that it’s harmless in the https://docs.activitywatch.net/en/latest/getting-started.html guide or filter out the log message so it doesn’t spook anyone?
Thank you 😃