Diffusion mirror of https://gitlab.wikimedia.org/toolforge-repos/switchmaster.git
Diffusion tool-switchmaster (main)
README.md
README.md
SwitchMaster
This Flask app makes patches for DBAs to make primary switchovers less painful.
Installing dependencies
This application uses Python 3 and Flask. Using a virtual environment is recommended:
# Unix-based systems python3 -m venv venv source venv/bin/activate pip install -r requirements.txt # Windows systems python3 -m venv venv venv\Scripts\activate pip install -r requirements.txt
Starting the application
You can use the flask command line utility to start the app:
# Unix-based systems source venv/bin/activate export FLASK_ENV=development export FLASK_APP=app flask run # Windows systems venv\Scripts\activate set FLASK_ENV=development set FLASK_APP=app flask run
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL · Credits