Deploy app with vue 3 and vite
eduardoalvarado
HOBBYOP

a year ago

The deploy does it correctly according to the logs, but when I try to access through the url provided by the railway container, it shows a 502 bad gateway error message and in the page an error saying that the application has failed to respond.

I do not understand what can be the problem.

Solved$10 Bounty

Pinned Solution

phoenixauro
HOBBY

a year ago

Make sure you have set the port in public network to 8080

Attachments

5 Replies

Railway
BOT

a year ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


a year ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 11 months ago


sanyasharma7
FREE

a year ago

Check your app is listening on the correct port

Railway expects your app to listen on:

PORT=8080

Make sure your server code uses:

app.listen(process.env.PORT || 8080);


eduardoalvarado
HOBBYOP

a year ago

my script in package.json it is

"start": "serve dist -s -n -L -p 8080"

because I use

"serve": "^14.2.4"

for up my app


phoenixauro
HOBBY

a year ago

Make sure you have set the port in public network to 8080

Attachments


phoenixauro

Make sure you have set the port in public network to 8080 ![](https://station-server.railway.com/attachments/att_01k0eev5hze49rkzfe2897kz57)

eduardoalvarado
HOBBYOP

a year ago

Excellent, this worked. I hadn't realized that it was pointing to another port. Best regards and thank you.


Status changed to Solved brody 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...