skip to Main Content

I can’t understand how to install Strapi on CPanel? Obviously, I need an Application startup file (like app.js) but there is none on Strapi. If there is another method than creating an Application startup file, I have SSH access but I don’t know how to do it… I’m new to NodeJS development so if you have a solution, it would be cool to be ample in explanation XD !

The NodeJS configuration panel screenshot

Thanks !

2

Answers


  1. From the strapi docs, it says you can create a server.js file in order to startup with node server.js instead of npm start. Populate it with the following:

    const strapi = require('strapi');
    
    strapi(/* {...} */).start();
    

    i.e. point to this server.js file as the application startup file in cPanel.

    Login or Signup to reply.
  2. Following up @tsams’ answer, these are the updated link for deployment requiring an application startup file like cpanel:

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search