updated to reflect move from hard-coded ip to FQDN and using gitea (on git.depaoli.id.au) instead of local git on mara
This commit is contained in:
6
README
6
README
@@ -4,7 +4,7 @@ to edit src:
|
||||
|
||||
git....
|
||||
cd ~/src ; # or wherever you want the code to live
|
||||
git clone git@192.168.0.2:photoassistant
|
||||
git clone https://git.depaoli.id.au/ddp/photoassistant.git
|
||||
|
||||
|
||||
ubuntu packages:
|
||||
@@ -49,10 +49,10 @@ 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):
|
||||
|
||||
# flask 2.2.2+ (in venv .python)
|
||||
FLASK_APP=main ENV=development ./.python/bin/flask --debug run --host=192.168.0.2
|
||||
FLASK_APP=main ENV=development ./.python/bin/flask --debug run --host=mara.ddp.net
|
||||
|
||||
to run prod version of web server:
|
||||
gunicorn --bind="192.168.0.2:5000" --threads=2 --workers=2 main:app
|
||||
gunicorn --bind="mara.ddp.net:5000" --threads=2 --workers=2 main:app
|
||||
|
||||
Also have to run the job manager for jobs to work:
|
||||
ENV="development" python3 pa_job_manager.py
|
||||
|
||||
Reference in New Issue
Block a user