Intermediate step with postgres to deploy a crud app (express, ejs)

https://stackoverflow.com/questions/74964944/pern-stack-deploying-to-railway I've been searching everywhere in the docs, SO, and the search function here for 'postgres' to sort out an issue with deployment. I get this error: Looks like your app is listening on 127.0.0.1. You may need to listen on 0.0.0.0 instead. My code includes the advice from the docs: const port = process.env.PORT || 3000; app.listen(port, "0.0.0.0", () => { console.log(App listening to port ${port}); }) I don't have any variables related to 'PORT' as I assume that's already something integrated into the process. Am I supposed to add a dependency in my app first?
Stack Overflow
PERN stack deploying to Railway
Hi I've just finished a PERN project that I want to deploying using Railway, should be very easy according the people on the internet. But I'm just so lost even to begin, I tried connecting to my G...
2 Replies
Percy
Percy2y ago
Please provide your project ID or reply with N/A. Thread will automatically be closed if no reply is received within 10 minutes. You can copy your project's id by pressing Ctrl/Cmd + K -> Copy Project ID.
Percy
Percy2y ago
No project ID was provided. Closing thread.
Want results from more Discord servers?
Add your server