a year ago
Hey guys, I'm trying to deploy a fastapi app but the deployment crashes with the error in the title.
I'm fairly new to deploying stuff, I've deployed a couple of simple apps without much issues, but this is a big one first for me.
The error says it "/opt/venv/bin/python: No module named xyz" where xyz is my project name/root folder name.
I'm not sure what the Project ID is but I see this ID on the crash screen: 4bc8565
Any help appreciated.
6 Replies
a year ago
Seems like you're attempting to import a folder in your project. Please send your project folder structure, as well as what folder you run your project from when you run it locally
I don't know what the issue was, but passing a start command in the settings seems to have worked.
Thanks for your reply!
Do you happen to know how to run alembic commands in railway? I tried the CLI, linked the project and opened a bash terminal, I was expecting alembic to be installed as it was in the pyproject.toml, but it just says not found. I don't know what I did wrong and I didn't want to install something without understanding the issue
a year ago
are you using railway ssh ?
10 months ago
!s
Status changed to Solved adam • 11 months ago