# Bind to PORT if defined, otherwise default to 5000.
port=int(os.environ.get('PORT',5000))
app.run(host='127.0.0.1',port=port)
@app.teardown_appcontext
defteardown_db(exception):
db.close_conn()
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.