Plesk with Strapi 4 Node.js

To use Strapi on a Plesk server you will need an app startup file. This is one which is working for me: [server.js]

// @see https://docs.strapi.io/developer-docs/latest/development/typescript.html#start-strapi-programmatically
const strapi = require('@strapi/strapi');
const app = strapi({ 
	distDir: './dist',
	autoReload: false,
	serveAdminPanel: true,
}).start();

The „distDir“ parameter is needed when using TypeScript.

If you want, you can try to enable the „autoReload“ feature. However for me it did not worked correctly since there does not seem a parent process to process the reload event.