try new procfile

This commit is contained in:
Sorrel Bri 2019-10-16 16:22:33 -07:00
parent e0942fe459
commit 2f146c96f6
2 changed files with 9 additions and 19 deletions

View file

@ -1,2 +1,2 @@
web: gunicorn server:run web: gunicorn --worker-class socketio.sgunicorn.GeventSocketIOWorker --log-file=- server:app
release: python manage.py db upgrade release: python manage.py db upgrade

View file

@ -19,24 +19,14 @@ def api_home():
response = {"message": "hello world"} response = {"message": "hello world"}
return jsonify(response) return jsonify(response)
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')
if __name__ == '__main__': if __name__ == '__main__':
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) 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)