Multi File Project - API deployment
bugnode0x
FREEOP

7 months ago

Hi There,

I have a project with the following file structure:

  • frontend (hosted in vercel)

  • app (API to host in railway!)

  • engine (worker to host in railway!)

  • db_client (DB package)

  • redis-client (redis package)

I have deployed my API with the following commands:

  • Build: pip install -r requirements.txt && pip install -e ./db_client && pip install -e ./redis-client

  • Deploy: uvicorn app.main:app

I am stuck here because the deployment is always successful. However, when I visit the root folder, I always get a 502 status code and no errors in my deploy logs which makes it harder to trouble shoot.

Any suggestions and help would be greatly appriciate it 🙂

Solved

0 Replies

bugnode0x
FREEOP

7 months ago

5a18dc37-bafc-4369-ada3-8fe82f10dad3


brody
EMPLOYEE

7 months ago

Hello,

Have you checked out our docs on this topic? -


bugnode0x
FREEOP

7 months ago

not yet. will be back after reading and testing.


bugnode0x
FREEOP

7 months ago

I did not set up the port correctly. Issue fixed. Thanks for the documentation.


brody
EMPLOYEE

7 months ago

No problem!


brody
EMPLOYEE

7 months ago

!s


Status changed to Solved brody • 7 months ago


Loading...