Browse Source

Setup the Git Manager in the main application

pull/5/head
Stefan Haun 2 years ago
parent
commit
f9a7d7fe21
  1. 7
      app.py

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

Loading…
Cancel
Save