not app.config but in run...
This commit is contained in:
parent
92d1ae28f3
commit
77871514af
1 changed files with 1 additions and 3 deletions
4
app.py
4
app.py
|
|
@ -14,8 +14,6 @@ sink = inputs[-1]
|
||||||
# initialization
|
# initialization
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
app.config['SECRET_KEY'] = 'the quick brown fox jumps over the lazy dog'
|
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():
|
class User():
|
||||||
def generate_auth_token(self, expires_in=600):
|
def generate_auth_token(self, expires_in=600):
|
||||||
|
|
@ -69,4 +67,4 @@ def disconnect():
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# if not os.path.exists('db.sqlite'):
|
# if not os.path.exists('db.sqlite'):
|
||||||
# db.create_all()
|
# db.create_all()
|
||||||
app.run(debug=True)
|
app.run(debug=True, host='0.0.0.0', port=5000)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue