a month ago
I have created an app locally running Nextjs and SQlite. I am trying to migrate to Railway PostgreSQL. My project pulls from the GitHub repo. I have been asking questions to the AI chat in the repo, but to no avail. it says it fixed a problem by changing port 3000 port 8080 and that it should be running on https://golf-app-nextjs-production.up.railway.app/ . The last deploy built successfully without issues. So I'm kind of stumped.
Pinned Solution
a month ago
Go to the networking section in your service settings and click the edit button, then put in the port your application is listening to.
Attachments
5 Replies
Status changed to Open Railway • about 1 month ago
a month ago
Make sure the port the URL is mapped to is the same port your application is listening to.
a month ago
Where do I put that?
a month ago
Go to the networking section in your service settings and click the edit button, then put in the port your application is listening to.
Attachments
a month ago
This worked. Now I have the application rendering. I don't believe it's connecting to the database properly though. Either that or the database migration did not create the database tables in Railway Postgres.
a month ago
Make sure your backend connects to Postgres with the given DATABASE_URL variable.
Status changed to Solved brody • about 1 month ago