autoReload function not working in development modus

System Information
  • Strapi Version: 3.5.3
  • Operating System: Ubuntu 20.04.2 LTS
  • Database: Maria 10.4
  • Node Version: v12.21.0
  • NPM Version: 6.14.11
  • VPS: Google Cloud Platform
  • Webserver: OpenLiteSpeed 1.6.20

When we setup strapi to be in development modus we still are getting errors about that “autoReload function is not working, you need to restart in dev mode”
Odd thing is we are in dev modus. The front page is confirming it by showing in which modus your using strapi.
We checked when we change the modus that if this modus message on the frontpage changes. and it does change so the environment values are working.

also weird part is when we start Strapi manually it always start in development modes locally?

Maybe worth to mention is that we start strapi like this:

start.js:
const strapi = require(‘strapi’);
strapi().start();

We need to do this because we are running openlitespeed

https://docs.litespeedtech.com/cloud/images/nodejs/