Railway build fails becuase it cant find my root directory
anohige
PROOP

9 months ago

Okay i was using railway and i had already build my project in production and it was running smoothly no issues, from today for some reason whenever i start a new build it throws me an error of 'Could not find root directory: /server' during build I dont know how fix it please help me

$10 Bounty

2 Replies

Railway
BOT

9 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


turborx
FREE

9 months ago

hi, if you’re just using the official rails docker image without copying or mounting your app files, the container won’t find bin/rails because it’s part of your app directory. you need to either build a custom image including your app code or mount your app directory so bin/rails is accessible inside the container. railway requires your code to be present during build and runtime for rails commands to work.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...