diff --git a/README b/README index dd53dd1..8cc740d 100644 --- a/README +++ b/README @@ -3,34 +3,22 @@ In here we can put instructions on how to run this / any general info to edit src: git.... -CAM: fill this in pls + cd ~/src ; # or wherever you want the code to live + git clone git@192.168.0.2:photoassistant ubuntu packages: - sudo apt-get install -y mediainfo cmake python3-flask + sudo apt-get install -y cmake libpq-dev -REDO THIS SOON (good to test on a clean install): +AFTER a fresh ubuntu, need to remove/make a new .python env and get pip-based python packages installed into .python: + cd ~/src/photoassistant + rm .python # use a venv (to get consistent python versions with Prod container) python3 -m venv .python source ./.python/bin/activate pip3 install -r requirements.txt - -pip packages: - * pymediainfo - * PIL (should be there by default) - - on ubuntu, need to do: pip3 install --upgrade pillow --user - * ExifRead - * opencv-python - * datetime - * pytz - * face_recognition - * flask_login - * flask-ldap3-login - #### dlib (might need to install this before face_recognitioin, but it might not be needed, cmake clearly was) - - upstream packages... mkdir static/upstream cd static/upstream @@ -60,9 +48,6 @@ pip3 list | tail -n +3 | grep -v mysqlclient | grep -v duplicity | grep -v gp To run debug version of web server (gunicorn deprecates FLASK_ENV, so co-exist for now): - # older flask: - FLASK_APP=main ENV=development FLASK_ENV=development flask run --host=192.168.0.2 - # flask 2.2.2+ (in venv .python) FLASK_APP=main ENV=development ./.python/bin/flask --debug run --host=192.168.0.2