Skip to content
The downtime application for kdm-manager (https://kdm-manager.com)
CSS HTML Shell Python JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
deploy
.flaskenv
.gitignore
LICENSE
README.md
downtime.py
install.sh
requirements.txt
server.sh

README.md

kdm-manager-downtime

The downtime application for kdm-manager (https://kdm-manager.com)

Install

Install host dependencies:

# apt-get -y update
# apt-get -y install python3 python3-venv python3-dev supervisor nginx git

Clone the repo.

Install app dependencies:

$ cd kdm-manager-downtime
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ deactivate

Run

Run the dev server from the root of the project directory:

$ cd kdm-manager-downtime
$ ./server.sh dev

Assuming everything went according to plan with pip, this should start listening on 0.0.0.0:8020 and responding to requests.

Deploy

In order to deploy, do all of the installation tasks above, make sure you've got SSL certificates configured and run the install.sh script as root:

# cd kdm-manager-downtime
# ./install.sh

(Failing to do something about the SSL dependencies will prevent nginx from reloading, but everything else should work.)

The install.sh script will reload both nginx and supervisord, at which point the app should be running on 127.0.0.0:8020 and nginx should be listening for requests for https://downtime.kdm-manager.com, https://kdm-manager.com, etc.

You can’t perform that action at this time.