Node.js support

Hi,

How can i add Node js support to Hestia,

After a ggogle i found this but not sure how to apply it, can anyone advise on how to install, i have the below running on server

node (-> v13.12.0)

@root from the link provided install requirements then use the path below in upload,

Usage.

  • PM2 must be installed.
  • The app must be installed in /home/user/web/domain/nodeapp/
  • The app entry point must be /home/user/web/domain/nodeapp/app.js
  • The app must listen on a UNIX socket in /home/user/web/domain/nodeapp/app.sock
  • Upload NodeJS.tpl , NodeJS.stpl , NodeJS.sh to /usr/local/hestia/data/templates/web/nginx/
  • In the control panel, select NodeJS from Proxy Template
2 Likes

I was following the the instructions but at the end i get an error after i install the nodejs app but site is unreachable error 500 and on error log i get

2020/06/11 18:56:37 [crit] 950#950: *324 connect() to unix:/home/prn/web/site.com.net/nodeapp/app.sock failed (2: No such file or directory) while connecting to upstream, client: 171.50.159.91, server: site.net, request: "GET /favicon.ico HTTP/1.1", upstream: "http://unix:/home/prn/web/site.net/nodeapp/app.sock:/ico", host: "site.net", referrer: "http://site.net/"

My script doesn’t have a file app.sock

Anybody able to assist with this

Any other .sock file? I am not known with NodeJS but looks quite clear…

Not sure as for me nodejs not my coupe of tea, just a request, willing to provide a fresh DO vps at disposal to find a working solution, my app has no .sock file

I hate to use C-y-b-erpanel(no advertise) purely for this, i want to be able to use my beloved hestia :slight_smile:

Is it standaard script? Check the dist, Documentation and the install folder maybe there is some information found to how / what?