-
Notifications
You must be signed in to change notification settings - Fork 67
Description
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