Skip to content
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

Support for more environment variables for Flask CLI #2713

Closed
JhossePaul opened this issue Apr 20, 2018 · 2 comments
Closed

Support for more environment variables for Flask CLI #2713

JhossePaul opened this issue Apr 20, 2018 · 2 comments
Milestone

Comments

@JhossePaul
Copy link

It would be great to add support for more environment variables for Flask CLI. For example,

FLASK_PORT=8080 flask run

should run the app in port 8080 instead of default. Thus, we can have a single .flaskenv file that sets our environment and just flask run without further arguments.

@davidism
Copy link
Member

davidism commented Apr 20, 2018

Click is already configured to do this, you're just missing the command name: FLASK_RUN_PORT

@davidism
Copy link
Member

Looks like it's not documented though.

@davidism davidism reopened this Apr 20, 2018
@davidism davidism added this to the 1.0 milestone Apr 20, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants