← スキル一覧に戻る

deploy-railway-v1
by atiati82
⭐ 0🍴 0📅 2026年1月25日
SKILL.md
name: deploy-railway-v1 description: Safe Railway deployment with pre-flight guards and rollback procedures
Deploy Railway Skill v1.0
Purpose: Deploy to Railway with all guards passing first.
1) Non-Negotiables (Policy)
Pre-Deploy Requirements
ALL guards must pass before deployment:
npm run guard:all
npm run build
Config Files
railway.json- Railway configurationProcfile- Start command.env- Environment variables (never commit)
2) Inputs & Outputs
Deployment Checklist
interface DeploymentChecklist {
guards: {
layouts: boolean;
routes: boolean;
content: boolean;
assets: boolean;
};
build: boolean;
tests: boolean;
commit: string;
}
Output
- Deployment URL
- Build logs
- Health check status
3) Quality Gates
Pre-Flight Checks
# 1. Run all guards
npm run guard:all
# 2. Build production bundle
npm run build
# 3. Type check
npm run check
# 4. Health check (if server running)
curl -s http://localhost:3000/health
Deployment Command
# Login (if needed)
railway login
# Deploy
railway up
Post-Deploy Verification
# Check production health
curl -s https://your-app.railway.app/health
# Check key routes
curl -s https://your-app.railway.app/
curl -s https://your-app.railway.app/shop
Railway CLI Reference
Available Scripts
| Script | Purpose |
|---|---|
scripts/railway-deploy.sh | Full deployment script |
scripts/diagnose-railway.sh | Troubleshoot failures |
scripts/check-railway-logs.sh | View recent logs |
Common Commands
railway status # Check project status
railway logs # View logs
railway up # Deploy
railway down # Stop service
railway variables # Manage env vars
Rollback Procedure
If deployment fails:
railway logs- Check error- Fix the issue locally
git revert HEADif needed- Re-run pre-flight checks
- Deploy again
Environment Variables
Required in Railway:
DATABASE_URL=postgresql://...
JWT_SECRET=...
STRIPE_SECRET_KEY=...
NODE_ENV=production
スコア
総合スコア
40/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です