enlistedmango
HOBBYOP
10 months ago
I'm having issues with my Go backend and deploying it on Railway. I've not run into this issue before.
- Using Nix
- Also have a railway config file in my project
- I can build my app and run it locally with no issues
- Anytime I deply to railway, it just fails on being able to find this specific directory.
I've tried various different things and it just keeps failing on this part
14 Replies
10 months ago
Hey, do you mind showing your build logs?
10 months ago
Sure
turborx
FREE
10 months ago
hi, railway can’t find your app/cmd/api directory either that path is wrong or missing in your repo. make sure app/cmd/api actually exists in the branch you’re deploying, and update your rootDirectory (in railway.json) or your WORKDIR (in your Dockerfile) to point to the correct folder.
10 months ago
Happens to the best of us, is everything working now?
10 months ago
Great, I'll mark this thread as solved!
10 months ago
!s
Status changed to Solved uxuz • 10 months ago