Express js and ejs Application not working
My node js and other apps are working fine but when i deployed ejs express js project it's not working ,i'm not even getting any errors in logs ,but the application is working fine in offline.
Project ID:7844315
i tried to contact through mail but i didn't get any response yet ,Urgent Support needed
thank you.
9 Replies
Project ID:
N/A
7844315
e6474a17-3344-485b-ba39-384739132e3a
service ID:b703b78d-e94a-42d4-a90d-5ee6838142ea
You're going to need to provide more info. What do you mean by "its not working"?
i'm getting Application failed to respond
logs are fine > [email protected] start
node index.jsServer is listening on address { address: '::', family: 'IPv6', port: 35057 }
but i allowing server to assign random port
const server = app.listen(() => {
const address = server.address();
console.log(
Server is listening on http://localhost:${address.port}/
);
});it should be using
process.env.PORT
for the port.
thatll get filled in automatically by railwayhok thank you so much ,it's working
Solution