20 days ago
I am deploying my service using Fastapi template as a baseline but after deploying i am unable to access it via public HTTPS url Done with CHATGPT and Gemini I am opening a thread. previously without the below change my code was atleast deploying successfully but not it ain't deploying
i have procfile also a raliway.json
Starting Container /opt/venv/bin/python: No module named uvicorn /opt/venv/bin/python: No module named uvicorn /opt/venv/bin/python: No module named uvicorn /opt/venv/bin/python: No module named uvicorn
railway.json { "$schema": "https://railway.app/railway.schema.json", "build": { "builder": "NIXPACKS" }, "deploy": { "startCommand": "python -m uvicorn main:app --host 0.0.0.0 --port $PORT" } }
procfile web: uvicorn main:app --host 0.0.0.0 --port $PORT
Please help
2 Replies
20 days ago
Hey there! We've found the following might help you get unblocked faster:
๐งต FastAPI deployment failing - Error: '$PORT' is not a valid integer despite multiple CMD formats
If you find the answer from one of these, please let us know by solving the thread!
20 days ago
Hey, have you tried redeploying your service or tried removing the public domain and regenerate it? Visiting https://papershapers-full-paper-generation-test.up.railway.app/ shows Railway's 404 not found page.