Skip to content

Simple application guide #16

@53RG1U5

Description

@53RG1U5

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions