[Pkg-debile-commits] [debile-web] 01/03: Run firewoes alongside debileweb.
Clément Schreiner
clemux-guest at moszumanska.debian.org
Fri Jun 27 16:05:51 UTC 2014
This is an automated email from the git hooks/post-receive script.
clemux-guest pushed a commit to branch firewoes_integration
in repository debile-web.
commit 0e0427cfcb57469cd61f2316c13275fe828eec2d
Author: Clément Schreiner <clement at mux.me>
Date: Fri Jun 27 17:57:46 2014 +0200
Run firewoes alongside debileweb.
---
app.py | 22 ++++++++++++++++++----
1 file changed, 18 insertions(+), 4 deletions(-)
diff --git a/app.py b/app.py
index 2276171..2c56185 100755
--- a/app.py
+++ b/app.py
@@ -1,4 +1,5 @@
# Copyright (c) 2012 Paul Tagliamonte <paultag at debian.org>
+# Copyright (c) 2014 Clement Schreiner <clement at mux.me>
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
@@ -22,11 +23,24 @@ from flask import Flask
from debile.master.utils import init_master
from debileweb.blueprints.frontend import frontend
-app = Flask("debile-web")
-app.config.from_object('config')
-app.register_blueprint(frontend)
+from firewoes.web.app import app as firewoes_app
+
+from werkzeug.serving import run_simple
+from werkzeug.wsgi import DispatcherMiddleware
+
+debile_app = Flask('debile-web')
+debile_app.config.from_object('config')
+debile_app.register_blueprint(frontend)
+debile_app.debug = False
+firewoes_app.debug = False
+
+application = DispatcherMiddleware(frontend, {
+ '': debile_app,
+ '/firewoes': firewoes_app,
+})
if __name__ == '__main__':
init_master(fedmsg=False)
- app.run(debug=False)
+ run_simple('localhost', 5000, application, use_reloader=True)
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-web.git
More information about the Pkg-debile-commits
mailing list