3 months ago
If I add simple ls, predeployment phase fails, without any logs. Anyone managed to get it working?
Pinned Solution
3 months ago
Eventually I managed to get it working with this command: "preDeployCommand": "sh -c \"cd /app/migrate && bunx prisma migrate deploy\"". May be the problem was with entrypoint of oven/bun, may be with the way Railway passes command, but I had to use sh -c. It would help more, if Railway would redirect output to Deploy logs and not silently fail.
3 Replies
3 months ago
This thread has been opened as a bounty so the community can help solve it.
Status changed to Open Railway • 3 months ago
3 months ago
It's possible that the image of your service doesn't contain the ls command.
0x5b62656e5d
It's possible that the image of your service doesn't contain the `ls` command.
3 months ago
It's docker.io/oven/bun:1-debian, and if I build it locally, there is /usr/bin/ls
3 months ago
Eventually I managed to get it working with this command: "preDeployCommand": "sh -c \"cd /app/migrate && bunx prisma migrate deploy\"". May be the problem was with entrypoint of oven/bun, may be with the way Railway passes command, but I had to use sh -c. It would help more, if Railway would redirect output to Deploy logs and not silently fail.
Status changed to Solved dev • 3 months ago