NODE JS application is not Running after registering from Application Manager.
1. create a directory nodejsapp in home (not in public_html)
2. Configure in Application Manager
3. Node runs but it shows "Cannot GET /nodeapps"
How to locate the nodejsapp in home directory?
app.js
const express =require('express');
const app = express(); // initialize express
const PORT = 3000;
app.get('/', function (req,res){
res.send(' Node Is WORKING...' + PORT)
});
1. create a directory nodejsapp in home (not in public_html)
2. Configure in Application Manager
3. Node runs but it shows "Cannot GET /nodeapps"
How to locate the nodejsapp in home directory?
app.js
const express =require('express');
const app = express(); // initialize express
const PORT = 3000;
app.get('/', function (req,res){
res.send(' Node Is WORKING...' + PORT)
});
Last edited by a moderator: