vestacp-nodejs
vestacp-nodejs copied to clipboard
Simple application guide
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
I am also interested in seeing this guide
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