zubrailx / ovision-hack-2022

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"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)
npm run start

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

About


Languages

Language:JavaScript 41.7%Language:Python 35.9%Language:SCSS 13.5%Language:HTML 6.0%Language:Dockerfile 2.1%Language:Shell 0.8%