def run in server.py
This commit is contained in:
parent
b4d165e9ff
commit
e0942fe459
2 changed files with 13 additions and 3 deletions
2
Procfile
2
Procfile
|
@ -1,2 +1,2 @@
|
|||
web: gunicorn server:app
|
||||
web: gunicorn server:run
|
||||
release: python manage.py db upgrade
|
10
server.py
10
server.py
|
@ -30,3 +30,13 @@ if __name__ == '__main__':
|
|||
|
||||
socketio.run(app, debug=False)
|
||||
|
||||
def run:
|
||||
app = create_app()
|
||||
register_api_endpoints(app)
|
||||
app.register_blueprint(server)
|
||||
migrate = Migrate(app, db)
|
||||
# added 10/14
|
||||
DATABASE_URL = os.environ['DATABASE_URL']
|
||||
conn = psycopg2.connect(DATABASE_URL, sslmode='require')
|
||||
|
||||
socketio.run(app, debug=False)
|
||||
|
|
Loading…
Reference in a new issue