stat /app/cmd/api: directory not found
enlistedmango
HOBBYOP

5 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

Solved$10 Bounty

14 Replies

enlistedmango
HOBBYOP

5 months ago

c61f94df-906a-4ac1-8ced-3e5acd9165e8


uxuz
MODERATOR

5 months ago

Hey, do you mind showing your build logs?


enlistedmango
HOBBYOP

5 months ago

Sure can


enlistedmango
HOBBYOP

5 months ago

Would you like all the logs from the recent build @uxuz ?


uxuz
MODERATOR

5 months ago

Sure


enlistedmango
HOBBYOP

5 months ago


turborx
FREE

5 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.


enlistedmango
HOBBYOP

5 months ago

Doing a quick test on something


enlistedmango
HOBBYOP

5 months ago

It was me being dumb and not realising


enlistedmango
HOBBYOP

5 months ago

i had my api folder in my gitignore file 🤦‍♂️ 🫠


uxuz
MODERATOR

5 months ago

Happens to the best of us, is everything working now?


enlistedmango
HOBBYOP

5 months ago

Yeah, everything is working now. Thanks


uxuz
MODERATOR

5 months ago

Great, I'll mark this thread as solved!


uxuz
MODERATOR

5 months ago

!s


Status changed to Solved uxuz 5 months ago


Loading...