question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not using production WSGI server

See original GitHub issue

Any 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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ErikBjarecommented, Sep 24, 2018

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).

0reactions
thomas725commented, Feb 3, 2022

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 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found