Skip to content

Instantly share code, notes, and snippets.

@m5wdev
Created September 10, 2018 15:07
Show Gist options
  • Save m5wdev/c829e50ff13cee12d7dbb5a7ed075772 to your computer and use it in GitHub Desktop.
Save m5wdev/c829e50ff13cee12d7dbb5a7ed075772 to your computer and use it in GitHub Desktop.
Automation running Flask 1.* local server with bash
#!/bin/bash
cd ~/Dropbox/flask_project/
# Activate virtualenv
source venv/bin/activate
cd ./app
export FLASK_APP=app.py && export FLASK_ENV=development && flask run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment