Skip to content

Instantly share code, notes, and snippets.

@gatamar
Last active May 25, 2020 04:23
Show Gist options
  • Save gatamar/5e16868028963567d5b686d06a39860e to your computer and use it in GitHub Desktop.
Save gatamar/5e16868028963567d5b686d06a39860e to your computer and use it in GitHub Desktop.

Flask

run Flask in a folder with app.py, preferrably in virtualenv

python -m flask run

kill Flask process after insufficient Ctrl + C

ps -ef | grep flask - shows all flask processes

sudo lsof -i :5000 - shows all processes running at port 5000

kill -9 SOME_PID - kills a process with id SOME_PID

Postgres

Go to https://postgresapp.com, and follow the instructions. It seems, they keep all libs in the Postgres.app package folder.

Install pgAdmin 4.

Python

For Flask, we need ....

For Postgres, we need psycopg2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment