1
0
mirror of https://github.com/IEEE-SB-Passau/pelican-deployment-system.git synced 2017-09-06 16:35:38 +02:00

nice status page

This commit is contained in:
2016-06-15 00:15:11 +02:00
parent 72ba260c8f
commit 7ff1a9d4e5
4 changed files with 112 additions and 3 deletions

7
app.py
View File

@@ -7,6 +7,7 @@ from operator import methodcaller
from bottle import run, default_app
from wsgiref.simple_server import make_server
import pelican_deploy.webhookbottle
import pelican_deploy.statusbottle
import logging
import atexit
import sys
@@ -48,6 +49,12 @@ def init_app(configpath):
pelican_deploy.webhookbottle.set_github_secret(config.GITHUB_SECRET)
default_app().mount("/hooks/", pelican_deploy.webhookbottle.app)
pelican_deploy.statusbottle.set_auth_basic_fn(getattr(config,
"STATUS_AUTH_BASIC_FN",
lambda us, pw: False))
pelican_deploy.statusbottle.set_runners(**runners)
default_app().mount("/status/", pelican_deploy.statusbottle.app)
return default_app()
if __name__ == "__main__":