Hosting with Plesk Obsidian

@fisocodes these are the steps that worked for me, running Plesk Obsidian 18.0.58 on Ubuntu 20.04.

  1. Run NODE_ENV=production strapi build
  2. Create server.js file with the following contents. NB: It should NOT have autoReload in production mode.
const strapi = require('@strapi/strapi');
const app = strapi({ distDir: './dist' });
app.start(); 
  1. Upload the ./dist directory only to your file manager.
  2. Upload your server.js and package.json files to your file manager.
  3. Create a ./public/uploads directory in your file manager.
  4. In the Node.js dashboard:
  • Update the Document Root to the public directory
  • Update the Application Root to your root directory
  • Edit the Application Startup File to your server.js file
  • Add your environment variables
  • Click “+ NPM Install”

Once this is done your file manager should look like this:

  • dist
  • node_modules
  • public
  • package.json
  • server.js

Click Restart App and it should work :rocket: