stat /app/cmd/api: directory not found
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

Solved$10 Bounty

14 Replies

enlistedmango
HOBBYOP

10 months ago

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


10 months ago

Hey, do you mind showing your build logs?


enlistedmango
HOBBYOP

10 months ago

Sure can


enlistedmango
HOBBYOP

10 months ago

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


10 months ago

Sure


enlistedmango
HOBBYOP

10 months ago


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.


enlistedmango
HOBBYOP

10 months ago

Doing a quick test on something


enlistedmango
HOBBYOP

10 months ago

It was me being dumb and not realising


enlistedmango
HOBBYOP

10 months ago

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


10 months ago

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


enlistedmango
HOBBYOP

10 months ago

Yeah, everything is working now. Thanks


10 months ago

Great, I'll mark this thread as solved!


10 months ago

!s


Status changed to Solved uxuz 10 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...