Hello ,
I am new to direct admin and it is the first time I am attempting to host my Nodejs app on DirectAdmin , I used the same type of setup I had on Plesk where it worked fine .
So , besides app.js , I have a server.js file which I am serving to create the server to run it , like so :
Then , in the Create Application page in Nginx Unit , I have this :
note the server.js added on the second page of the configuration ...
Now for the route :
What am I doing wrong ?!
Please help me on this .
Thank you,
Cristian
I am new to direct admin and it is the first time I am attempting to host my Nodejs app on DirectAdmin , I used the same type of setup I had on Plesk where it worked fine .
So , besides app.js , I have a server.js file which I am serving to create the server to run it , like so :
const app = require('./app');
const http = require('http');
const dotenv = require('dotenv');
dotenv.config();
http.createServer(app).listen(process.env.PORT);
Then , in the Create Application page in Nginx Unit , I have this :
note the server.js added on the second page of the configuration ...
Now for the route :
What am I doing wrong ?!
Please help me on this .
Thank you,
Cristian