5 days ago
If I add simple ls, predeployment phase fails, without any logs. Anyone managed to get it working?
Pinned Solution
5 days 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
5 days ago
This thread has been opened as a bounty so the community can help solve it.
Status changed to Open Railway • 5 days ago
5 days 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.
5 days ago
It's docker.io/oven/bun:1-debian, and if I build it locally, there is /usr/bin/ls
5 days 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 • 2 days ago