From f9a7d7fe2184618c9bda1e1054506f043aabe5fc Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Thu, 11 Feb 2021 20:59:18 +0100 Subject: [PATCH] Setup the Git Manager in the main application --- app.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app.py b/app.py index 7bff5b8..0347d04 100644 --- a/app.py +++ b/app.py @@ -12,6 +12,7 @@ import json import util from auth import AuthProvider +from gitmgr import GitManagerConfiguration, GitManager startup_timestamp = datetime.now() @@ -83,10 +84,16 @@ def main(): # Setup auth_provider = AuthProvider.from_environment() + gitcfg = GitManagerConfiguration.from_environment() + gitmgr = GitManager(configuration=gitcfg) + gitmgr.setup() + gitmgr.printout() + util.run_tornado_server(make_app(auth_provider), server_port=port) # Teardown + gitmgr.teardown() print("Server stopped")