[fix] Select Railway services when redeploying previews#4725
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThree Railway OSS hosting scripts are updated to pass ChangesExplicit Railway environment targeting for redeploys
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Railway Preview Environment
|
Context
Railway preview deploys started failing after setup with
No deployment found for service. The deploy script checkedPostgresbut then ran a barerailway redeploy --yes, which depends on the CLI's currently linked service. The current Railway CLI exposes explicit--serviceselection and treats the old implicit service form as deprecated, so the bare redeploy can target a service with no deployment, such asgateway, before the script reaches Alembic or app deployment.Changes
Redeploy calls now pass the intended service and environment directly.
Before:
After:
The same explicit selector is used for the image-based preview deploy helper and smoke-test auto-repair paths, so no path relies on mutable Railway CLI service state for redeploys.
Tests / notes
bash -n hosting/railway/oss/scripts/deploy-from-images.sh hosting/railway/oss/scripts/deploy-services.sh hosting/railway/oss/scripts/smoke.shgit diff --check -- hosting/railway/oss/scripts/deploy-from-images.sh hosting/railway/oss/scripts/deploy-services.sh hosting/railway/oss/scripts/smoke.sh5.15.0.