R
Railway3y ago
Sergi

Cannot expose my vite ts app

message: Is your app correctly listening on $PORT? BUT i don't know how to solve this, i read the documentation but i don't understand yet..
12 Replies
JustJake
JustJake3y ago
Is it listening on the environment variable $PORT and 0.0.0.0
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
JustJake
JustJake3y ago
Your app needs to listen on PORT Either listen on process.env.PORT or set a Variable PORT=8080 and listen on 8080
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
JustJake
JustJake3y ago
You, without a doubt, have a port What does it say when you run your app locally? What kind of application is it? Oh it’s Vite Vite defaults to 3000 Set PORT=3000
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Seb
Seb2y ago
@txg Hi, sorry for the bump. How did you fix this?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Seb
Seb2y ago
Oh man, that really sucks. I literally have process.env.PORT in the vite config and it starts on a correct port 😄
Seb
Seb2y ago
Seb
Seb2y ago
This fixed it! :)
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server