Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy Node App On iisnode Then Routing Not Working Same App Running On Normally Command Line Or Express #682

Open
DHANESH-KUMAR opened this issue Oct 16, 2020 · 1 comment

Comments

@DHANESH-KUMAR
Copy link

DHANESH-KUMAR commented Oct 16, 2020

var express = require("express");
var app = express();
var moment = require("moment");

app.get("/", function (req, res, err) {
res.writeHead(200, { "Content-Type": "text/html" });
res.end(
"Hello, world! iisnode version is " +
process.env.IISNODE_VERSION +
", node version is " +
process.version +
"]

" +
moment(new Date()).format("dddd MMM yyyy hh:mm:ss") +
"

"
);
});
app.get("/hello", function (req, res, err) {
res.writeHead(200, { "Content-Type": "text/html" });
res.end("Route2");
});
var port = process.env.PORT || 5000;
app.listen(port, function () {
console.log("server started at@" + port);
});

issnode-error


des

@Nagarajmahadevan
Copy link

did you find the answer ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants