"Faceprints"
Running & Deploying
Local (backend standalone, debug mode)
- start the server with (from the
backend
folder)
source venv/bin/activate # linux
venv/bin/activate # windows
venv/Scripts/activate # PyCharm's thing
python main.py
- or create a run configuration in PyCharm
Local (frontend standalone)
- start the server with (from the
frontend
folder)
Local (with docker)
- to build & start the project (from the project root folder)
docker-compose build
docker-compose up
Server
- pull & start the server, using latest images (aka images from master):
cd ~/faceprints
sh ./deployer.sh
- pull & start the server, using
brach-name
images:
cd ~/faceprints
env TAG="brach-name" sh ec ./deployer.sh
- manual pull & start (can be modified)
docker-compose pull
docker-compose up --no-build -d
- to see the starting logs, skip the
-d
option