Skip to content

Instantly share code, notes, and snippets.

@aswan89
Created November 26, 2019 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aswan89/de6ae5f000faf66042247154038e5887 to your computer and use it in GitHub Desktop.
Save aswan89/de6ae5f000faf66042247154038e5887 to your computer and use it in GitHub Desktop.
flask dev server problems
[nix-shell:~/project]$ flask run
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
^C
[nix-shell:~/project]$ export FLASK_ENV=development
[nix-shell:~/project]$ flask run
* Environment: development
* Debug mode: on
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Restarting with stat
File "/nix/store/d34icmvx8dfjsmj6ihwi8jx8kilbcmgw-python3.7-Flask-1.1.1/bin/flask", line 2
export PATH='/nix/store/zdh16dcvjw99ybam59zd2ijb6bx138j0-python3-3.7.5/bin:/nix/store/d34icmvx8dfjsmj6ihwi8jx8kilbcmgw-python3.7-Flask-1.1.1/bin'${PATH:+':'}$PATH
^
SyntaxError: invalid syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment