Deploy Frontity with Plesk Node.js extension

Hello,
I’m trying to deploy Frontity with Plesk Node.js extension but doesn’t seem to be working. Any suggestions to help me out are welcome. Thank you.

ok, I managed to get this done by creating an app.js file in the root folder and adding the listen method.

var frontity = require("./build/server").default;
var http = require(‘http’);
var server = http.createServer(frontity);
server.listen(process.env.PORT);

3 Likes

Hi @eronneb, that’s awesome! So I guess it’s something similar to cPanel or DreamHost, right?

Exactly.

I’m trying to install a frontity app on my hosting with Linux Plesk, could you give me a hand? I’ve followed every step on this guide: https://www.plesk.com/blog/product-technology/node-js-plesk-onyx/ and then when I’m installing the NPM it gives me an error:

  • npm WARN react-helmet-async@1.0.7 requires a peer of react@^16.6.0 but none is installed. You must install peer dependencies yourself.
  • npm WARN react-helmet-async@1.0.7 requires a peer of react-dom@^16.6.0 but none is installed. You must install peer dependencies yourself.
  • npm WARN ws@7.4.3 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
  • npm WARN ws@7.4.3 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.

I’ve also created the app.js file.

Hey @nicolasboada, those are warnings, not errors.

Could you describe what problem do you have?

Hi,
Can you help me to install in plesk panel.
OS: Ubuntu 20.04.2 LTS
Product: Plesk Obsidian 18.0.35 Update #2

Okay, I was able to accomplish this by creating an app.js file in the root folder and adding the listen-to method to the file.

The frontity variable is defined as follows: frontity = require("./build/server").default;
The variable http is defined as require(‘http’);
The variable server is defined as http.createServer(frontity);
Process.env.Port; http.createServer(frontity);

What an awesome accomplishment! I’m so happy for you! Keep up the good work! Therefore, I think I have an idea of what it is, because it seems similar to either cPanel or Dream Host, right?

Indeed, simply follow the bearings however utilize your subdomain rather than your fundamental area. I have an arrangement very much like that and there was no stunt to making it work.

What a wonderful achievement! I’m so glad for you! Keep doing awesome! Hence, I assume I have a thought of what it is, on the grounds that it appears to be like either cPanel or Dream Host, correct?

What a great achievement! I’m so glad for you! Keep doing awesome! Along these lines, I assume I have a thought of what it is, on the grounds that it appears to be like either cPanel or Dream Host, correct?