from app import create_app

app = create_app('config.heroku_config')

if __name__ == '__main__':
    app.run(debug=True, use_reloader=False)

from app import create_app
import os

app = create_app('config.heroku_config')

if __name__ == '__main__':
    port = int(os.environ.get('PORT', 5000))
    app.run(host='0.0.0.0', port=port, debug=False, use_reloader=False)

Update Heroku Config