Health check a server with 'nohup $(cmd) &'

from blog Redowan's Reflections, | ↗ original
↗ original
While working on a project with EdgeDB1 and FastAPI2, I wanted to perform health checks against the FastAPI server in the GitHub CI. This would notify me about the working state of the application. The idea is to: Run the server in the background. Run the commands against the server that’ll denote that the app is in a working state. Perform...