I don't know how to host React website + Python (FastAPI)
itskushh
HOBBYOP

a year ago

Hey !

I'm completly new in this domain, i'm trying to deploy with my React website + Python backend (FastAPI, etc.).

I tried many things, differents start / build commands.

What i need:

  • npm install -> npm run build

  • pip install -r requirements.txt

  • uvicorn api:app --host 0.0.0.0 --port $PORT

What is going wrong:

  • pip install -r requirements.txt

  • uvicorn api:app --host 0.0.0.0 --port $PORT

With a simple error in the logs: pip command not found. After that the website is crashing.
I've added Nodejs and Python in providers, added start and build commands like i said, i don't really know what to do now.

Hope you could help me, thanks.

Solved

1 Replies

a year ago

Heya, looks like you deleted your project. Were you able to get this up and running ? You may need to add python to the list of providers in the service's settings.

Best,

Nico


Status changed to Awaiting User Response Railway about 1 year ago


Status changed to Solved itsrems about 1 year ago


Loading...