mirror of
https://github.com/Lunik/gitea_prometheus_exporter.git
synced 2025-04-18 11:04:02 +03:00
19 lines
223 B
Python
19 lines
223 B
Python
#!/usr/bin/env python3
|
|
|
|
import os
|
|
|
|
from api import App
|
|
|
|
|
|
def setup():
|
|
app = App(config_file=os.path.join(os.getcwd(), 'config.yml'))
|
|
|
|
app.setup()
|
|
|
|
return app
|
|
|
|
if __name__ == "__main__":
|
|
app = setup()
|
|
|
|
app.start()
|