@fisocodes these are the steps that worked for me, running Plesk Obsidian 18.0.58 on Ubuntu 20.04.
- Run
NODE_ENV=production strapi build
- 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();
- Upload the
./dist
directory only to your file manager. - Upload your
server.js
andpackage.json
files to your file manager. - Create a
./public/uploads
directory in your file manager. - 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