pip3 install -r requirements.txt
uvicorn payanam_launch:app --port 5500 --reload
Deploy on server: if deploying under a folder path under main host, use --root-path :
nohup uvicorn payanam_launch:app --port 5500 --root-path /payanam &
Will start application on port 5500, http://localhost:5500/
Build:
docker build -t payanam .
Run:
docker run --rm -it -p 5500:5500 \
-e DB_SERVER='server' -e DB_PORT='5432' \
-e DB_DBNAME='dbname' -e DB_USER='username' \
-e DB_PW='pw' \
payanam