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
Percy
Percy2y ago
Project ID: N/A
CREATIVESTAR
CREATIVESTAROP2y ago
7844315 e6474a17-3344-485b-ba39-384739132e3a service ID:b703b78d-e94a-42d4-a90d-5ee6838142ea
luna
luna2y ago
You're going to need to provide more info. What do you mean by "its not working"?
CREATIVESTAR
CREATIVESTAROP2y ago
i'm getting Application failed to respond logs are fine > [email protected] start
node index.js
Server is listening on address { address: '::', family: 'IPv6', port: 35057 }
CREATIVESTAR
CREATIVESTAROP2y ago
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}/); });
luna
luna2y ago
it should be using process.env.PORT for the port. thatll get filled in automatically by railway
CREATIVESTAR
CREATIVESTAROP2y ago
hok thank you so much ,it's working
Solution
luna
luna2y ago
Want results from more Discord servers?
Add your server