Skip to content
Deploy app with vue 3 and vite
eduardoalvarado
OP

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

a year ago

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

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 • over 1 year ago


sanyasharma7

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
OP

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

a year ago

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


phoenixauro

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

eduardoalvarado
OP

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 • over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...