Hi there...
Just simple JS file like this
const http = require('http');
const hostname = '194.233.77.86';
const port = 4000;
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('This is a test from nodjs app.js!\n');
});
server.listen(port, hostname, () => {
console.log(`Server running at http://${hostname}:${port}/`);
});
and run this file with PM2 Manager in aa panel, but it's show error log like here
still not have idea, but i follow instruction from youtube -> https://www.youtube.com/watch?v=iF8Pj_kFOZ4
direction is look same as thats video.
Thanks!!