squidwarddab1111
Exposing FastAPI
So once I've set the PORT env variable, would I be able to make api call without any further changes
Say if I have a GET "/message/" endpoint that returns a text.
If I fire a GET request from Insomnia or Postman to {service-name}-production-up.railway.app/message/, would that be it?
17 replies
Exposing FastAPI
Hi Vin, thanks for getting on so quickly.
By that do you mean I need to create a new environment variable named "PORT" and set the value to 9000?
I can see that this is mentioned in the docs
https://docs.railway.app/deploy/exposing-your-app, but Im kinda new to networking bits
17 replies