vestacp-nodejs icon indicating copy to clipboard operation
vestacp-nodejs copied to clipboard

Simple application guide

Open 53RG1U5 opened this issue 3 years ago • 2 comments

Can you provide a small guide to a simple application on how to launch an application using your method? Let's say I have an application:

// CODE START const http = require('http'); const hostname = 'localhost'; const port = 3000; const server = http.createServer((req, res) => { res.statusCode = 200; res.setHeader('Content-Type', 'text/plain'); res.end('Hello World!\n'); }); server.listen(port, hostname, () => { console.log(Server running at http://${hostname}:${port}/); }); //CODE END

I put this script in /home/user/web/domain/nodeapp/app.js

I set NodeJs in the proxy settings. What to do with the app.sock file? What should be there?

The app must listen on a UNIX socket in /home/user/web/domain/nodeapp/app.sock <- I do not understand what I have to do here

53RG1U5 avatar Apr 21 '21 12:04 53RG1U5

I am also interested in seeing this guide

metadummy avatar Mar 22 '22 05:03 metadummy

I'm an old VestaCP fan. I don't know if you guys had any success, but it looks like the guys over at HestiaCP had SOME success with a similar setup. I'm actually trying to clear up some space, so I can go back to having a VestaCP machine for development purposes. I just can't do this workload without being able to demonstrate stuff on Softaculous Premium. Softaculous ROCKS, I wish I never went another day without that resource.

I was hoping by sharing the progress from the HestiaCP, we could all share progress and compare notes.

Who knows, maybe the plugins are compatible?

Hestia for Node.js? - Hestia Control Panel - Hestia Control Panel - Discourse https://forum.hestiacp.com/t/hestia-for-node-js/5273

Node.js support - Hestia Control Panel - Discourse https://forum.hestiacp.com/t/node-js-support/653

aaronsql2019 avatar Apr 12 '23 07:04 aaronsql2019