Deploy is a Python CLI for deploying QUIZ web app in a reliable and scalable arquitecture.
After cloning, in the project: install click, activate the venv and download the vnx files.
python3 installClick.py
. venv/bin/activate
pip install --editable .
deploy setupvnx # It will create "pfinal" folder
cd pfinal
bin/prepare-pfinal-vm
In the directory pfinal/.
. venv/bin/activate
cd /pfinal
deploy up # Deployment until bbdd, followed by questions.
# If mysql cannot be link, say "n", and then, another time, deloy up
# If it is linked
deploy go
# To change layout of QUIZ in each server
cd ..
python changePages.py
deploy destroy # Destroy the arquitecture.
deploy restart # Restart the arquitecture.
If type (y) it will be continue, if no the system will be destroy. In this way, through atomic operations is achieved the idempotent deploy.
Specific commands info:
deploy --help
For fast deployment:
yes | deploy go
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.