R
Railway6mo ago
Floris

Rust Rocket API not exposed

hey guys im trying to deploy my rust rocket API, on localhost it works fine but when deployed it doesn't resolve im listening to the env var PORT if that doesnt exist it'll assume port 8000 (localhost8000) works fine
Solution:
do you have a ROCKET_ADDRESS service variable set to 0.0.0.0?
Jump to solution
13 Replies
Percy
Percy6mo ago
Project ID: N/A
Solution
Brody
Brody6mo ago
do you have a ROCKET_ADDRESS service variable set to 0.0.0.0?
Floris
Floris6mo ago
no i dont on localhost i dont either
Brody
Brody6mo ago
try it
Floris
Floris6mo ago
ok thanks b 1 min
Floris
Floris6mo ago
brody my friend its working now, thanks alot
Brody
Brody6mo ago
no problem
Floris
Floris6mo ago
No description
Floris
Floris6mo ago
wheres the solved button
Brody
Brody6mo ago
I disabled it
Floris
Floris6mo ago
ohaaa okay then, thanks alot bro you're always so speedy
Brody
Brody6mo ago
happy to help