How to know if strapi server is ready?

System Information
  • Strapi Version: latest
  • Operating System: ubuntu
  • Database: sqlite3
  • Node Version: 14
  • NPM Version: 7
  • Yarn Version: none

Is there a way we can know if the strapi server is ready?
(something like strapi.start())


Not from the internal API AFAIK, you would have to run a HEAD /_health I believe.

4 Likes
Version    4.19.1 (node v20.11.1) 
Edition    Community

For anyone else looking to set up a /health route
I created a Gist on how to do this here