Commit 642c478
committed
fix(deploy): set buildContext for Railway backend deployment
Problem:
Railway deployment failing with error:
'failed to compute cache key: "/requirements.txt": not found'
Root Cause:
Railway was building from root directory but Dockerfile references
files in backend/ directory (requirements.txt, services/, etc.)
Solution:
Add buildContext field to railway.json to specify backend/ as
the build directory.
Changes:
- Add "buildContext": "backend" to railway.json build configuration
- Railway now correctly builds from backend/ directory
- All COPY commands in Dockerfile now resolve correctly
Result: Railway deployment builds successfully1 parent 161468e commit 642c478
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
0 commit comments