squidwarddab1111
squidwarddab1111
RRailway
Created by squidwarddab1111 on 7/31/2023 in #✋|help
Exposing FastAPI
Hi, I would like to expose API from my FastAPI project but I'm failing to make calls to it. Service id - 29800e78-3c36-43a7-99b3-823055a3d0b4 Under Settings -> Domain, I have exposed this service to the public internet In my main.py if __name__ == "__main__": import uvicorn uvicorn.run(app, host="0.0.0.0", port=9000) Service Deploy Logs INFO: Started server process [1] INFO: Waiting for application startup. startup event log INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:9000 (Press CTRL+C to quit)
17 replies
RRailway
Created by squidwarddab1111 on 7/27/2023 in #✋|help
Private networking - React and FastAPI
Hey. I've read the docs and am still slightly confused. How do I go about making calls from my public React app to my private FastAPI backend. https://docs.railway.app/reference/private-networking Frontend Service ID - 025f778e-723c-45ae-844c-f18fab993162 Backend Service ID - 29800e78-3c36-43a7-99b3-823055a3d0b4
11 replies