Manual install method node cpanel?

Well spotted @hammad :+1:

@inshaal let us know if this fixes the problem for you.

Also we’d love to know what you’re building with Frontity. Do you have a link to your site?

2 Likes

A post was split to a new topic: Slider component giving 503 error

@pingram3541, amazing tutorial, but I have a small doubt at step 6: I should get the Node snippet PLUS an SSH generated key and paste it into the subdomain (headless, in your case). How should I paste it there? Is it a txt file? Should I upload the generated key file there? Sorry if I am asking a redundant question, but I have never done that before. Thanks!

Hi Cassiano,

It’s been a while since I have done this so things could have changed but no just copy the command provided (step 5) and then SSH into your hosting environment using your preferred SSH client then paste and execute that command from the command line.

The SSH generated key is for your SSH client to connect you to your server’s terminal giving you access to the command line interface where you will paste the copied snippet (command) and once executed, it will place you into the /headless folder (if you used same naming as my example).

1 Like

Hi the follwing code will help to deploy frontity website over SSL (https://your-site.com:4000)

const frontity = require("./build/server").default;
const https = require('https');
const fs = require('fs');

const options = {
  key: fs.readFileSync('your_ssl.key'),
  cert: fs.readFileSync('your_ssl.cert')
};

const server = https.createServer(options, frontity);
server.listen(4000);

the *.key & *.cret file on the same direcory of app.js file

i hope this will help

thanks

2 Likes

Hello. Thanks in advance for the guide. I can’t find a better guide to create a frontity on cpanel hosting.
I followed the steps and it works, but I receive a 404 when I hit the URL. I can’t figure out how to solve this.
Can you give me a hand?

Thanks very much. :slight_smile: