Guide to deploy the Python Flask backend into a production demo server.
For now this will be a small set of manual steps, but later we may want to automate this via the CI pipeline, by building the docker image and push it to the docker hub.
git clone https://github.com/approov/quickstart-python-flask-token-check.git && cd quickstart-python-flask-token-check/server/shapes-api
Copy the .env.example:
cp .env.example .env
The v2/* endpoints are protected by the Approov Token, thus we need to set the Approov secret for python-flask-shapes.approov.io.
Get the Approov secret with:
approov secret /path/to/administration.tok -get base64
Add it to the .env file:
APPROOV_BASE64_SECRET=approov-base64-encoded-secret-here
sudo docker-compose build
sudo docker-compose up -d python
sudo docker-compose down
sudo docker-compose logs --follow --tail 20