Hx-Ying18 / CDPS_PFinal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DEPLOY

Deploy is a Python CLI for deploying QUIZ web app in a reliable and scalable arquitecture.

Installation

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

Usage

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

Contributing

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.

License

MIT

About


Languages

Language:Python 52.1%Language:Shell 31.3%Language:HTML 16.6%