Update
This commit is contained in:
parent
f8d91da0ef
commit
2e9fbf14e9
5 changed files with 97 additions and 31 deletions
10
app.py
10
app.py
|
|
@ -1,7 +1,15 @@
|
|||
import os
|
||||
from flask_route import *
|
||||
from flask import Flask
|
||||
from config import Config, DevelopmentConfig, TestingConfig, ProductionConfig
|
||||
from flask_sqlalchemy import SQLAlchemy
|
||||
|
||||
if __name__ == '__main__':
|
||||
app = Flask(__name__)
|
||||
|
||||
PORT = int(os.environ.get('PORT', 33507))
|
||||
db = SQLAlchemy(app)
|
||||
|
||||
app.config['SECRET_KEY'] = os.environ.get('SECRET_KEY', 'secret_key')
|
||||
app.config.from_object(os.environ['APP_SETTINGS'])
|
||||
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
||||
app.run(host='0.0.0.0', port=PORT, debug=False)
|
||||
Loading…
Add table
Add a link
Reference in a new issue