Railway is using RAILPACK for the backend service, which is failing. The backend needs to use Dockerfile instead.
- Go to Railway Dashboard → backend service (
taskforce-backend) → Settings - Go to "Build" section
- Find "Builder" dropdown
- Change from "Railpack" to "Dockerfile"
- Dockerfile Path: Should be
Dockerfile(Railway will look forbackend/Dockerfile) - Save
- Railway will auto-redeploy
- The backend will build using the Dockerfile
- CORS fix will be applied
- Backend will start successfully
backend/railway.jsonspecifies Dockerfile, but Railway Dashboard settings override it- RAILPACK is trying to run migrations during build, which fails
- Dockerfile approach works correctly (as we saw with webapp)
The backend will:
- ✅ Build using Dockerfile
- ✅ Run migrations on startup (via start.sh)
- ✅ Apply CORS fix
- ✅ Accept requests from webapp
Then the webapp will be able to:
- ✅ Call backend API without CORS errors
- ✅ Authenticate with Google OAuth