Skip to content

Commit

Permalink
<fix> add dotenv command in wsgy.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kirianguiller committed Oct 22, 2020
1 parent 1377c31 commit 846e70e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

from app import create_app

app = create_app(os.getenv("FLASK_ENV") or "test")
from dotenv import load_dotenv
load_dotenv(dotenv_path=".flaskenv", verbose=True)

env = os.getenv("FLASK_ENV") or "test"

app = create_app(env)
if __name__ == "__main__":
app.run("0.0.0.0", 8080, debug=True)

0 comments on commit 846e70e

Please sign in to comment.