Next.js app - trouble getting it to render - Deploy says successful
keschae
HOBBYOP

18 days 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.

Solved$10 Bounty

Pinned Solution

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 18 days ago


Make sure the port the URL is mapped to is the same port your application is listening to.


keschae
HOBBYOP

18 days ago

Where do I put that?


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


keschae
HOBBYOP

18 days 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.


Make sure your backend connects to Postgres with the given DATABASE_URL variable.


Status changed to Solved brody 18 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...