added a health check to see if this can help with the odd startup lag, it didnt
This commit is contained in:
4
main.py
4
main.py
@@ -246,6 +246,10 @@ def logout():
|
|||||||
logout_user()
|
logout_user()
|
||||||
return redirect('/login')
|
return redirect('/login')
|
||||||
|
|
||||||
|
# quick health route so traefik knows we are up
|
||||||
|
@app.route('/health')
|
||||||
|
def health():
|
||||||
|
return {"status": "ok"}, 200
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# main to be called via Flask/Gunicorn
|
# main to be called via Flask/Gunicorn
|
||||||
|
|||||||
Reference in New Issue
Block a user