not app.config but in run...

This commit is contained in:
Frank "PHiAX" Weggelaar 2024-08-31 20:48:19 +02:00
parent 92d1ae28f3
commit 77871514af

4
app.py
View file

@ -14,8 +14,6 @@ sink = inputs[-1]
# initialization
app = Flask(__name__)
app.config['SECRET_KEY'] = 'the quick brown fox jumps over the lazy dog'
app.config['HOST'] = '0.0.0.0'
app.config['PORT'] = '5000'
class User():
def generate_auth_token(self, expires_in=600):
@ -69,4 +67,4 @@ def disconnect():
if __name__ == '__main__':
# if not os.path.exists('db.sqlite'):
# db.create_all()
app.run(debug=True)
app.run(debug=True, host='0.0.0.0', port=5000)