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")