add var HOST
This commit is contained in:
parent
5e776f5fbe
commit
7f3ac12e81
2 changed files with 4 additions and 5 deletions
5
main.py
5
main.py
|
@ -1,5 +1,5 @@
|
|||
from flask import Flask, request
|
||||
from config import PORT
|
||||
from config import HOST, PORT
|
||||
from route import ZZRouter
|
||||
|
||||
app = Flask(__name__)
|
||||
|
@ -9,5 +9,4 @@ def whenmsg():
|
|||
ZZRouter(request.get_json())
|
||||
return ''
|
||||
|
||||
app.run(host='0.0.0.0',port = PORT, debug=True)
|
||||
|
||||
app.run(host= HOST,port = PORT, debug=True)
|
|
@ -4,6 +4,6 @@ APIURL = 'http://127.0.0.1:5700/'
|
|||
|
||||
AUTHORIZATION = ''
|
||||
|
||||
PORT = 5580
|
||||
|
||||
HOST = '0.0.0.0'
|
||||
|
||||
PORT = 5580
|
Loading…
Reference in a new issue