fix.
This commit is contained in:
parent
d50bfa4e21
commit
769378c07b
5
api.py
5
api.py
|
@ -1,6 +1,6 @@
|
|||
import time
|
||||
from flask import Flask, jsonify, request
|
||||
from prometheus_client import Counter, Summary
|
||||
from prometheus_client import Counter, Summary, start_http_server
|
||||
from timber import axe, LumberJack
|
||||
from config import _CLIENT_CONFIG
|
||||
|
||||
|
@ -43,4 +43,5 @@ def get_client_config(hostname):
|
|||
return jsonify(_CLIENT_CONFIG), 200
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(debug=True, host='0.0.0.0')
|
||||
start_http_server(port=8000, addr='0.0.0.0')
|
||||
app.run(debug=False, host='0.0.0.0')
|
Loading…
Reference in New Issue