-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flask-profiler work in production mode? #38
Comments
It can work regardless of what the debug mode is. Please have a look at quick start examples: https://github.com/muatik/flask-profiler#quick-start You can turn on/off it using the If debug mode is on, then the flask profiler is on. app.config["flask_profiler"] = {
"enabled": app.config["DEBUG"]
} Flask-profiler is always on: app.config["flask_profiler"] = {
"enabled": True
} |
and if you want to use it in a production environment, do not forget to turn basic authentication on so that only people know username and password can access to flask-profiler. app.config["flask_profiler"] = {
"enabled": True
"basicAuth":{
"enabled": True,
"username": "admin",
"password": "admin"
}
} |
Ok. That makes sense. I did read the quickstart, but it wasn't clear about debug vs production. And I only say
|
Does the flask-profiler only work in debug mode? While this is great for debugging, I'd like to collect statistics while users are navigating my Flask app in a real production environment. Is this possible? If so, can you provide an example of the config info that needs to be set?
The text was updated successfully, but these errors were encountered: