from app import create_app

application = create_app()

if __name__ == '__main__':
    application.run()
from app import create_app

application = create_app()

if __name__ == '__main__':
    port = int(os.environ.get('PORT', 5000))
    application.run(host='0.0.0.0', port=port)
Update wsgi.py for port