スキル一覧に戻る
atiati82

deploy-railway-v1

by atiati82

0🍴 0📅 2026年1月25日
GitHubで見るManusで実行

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 configuration
  • Procfile - 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

ScriptPurpose
scripts/railway-deploy.shFull deployment script
scripts/diagnose-railway.shTroubleshoot failures
scripts/check-railway-logs.shView 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:

  1. railway logs - Check error
  2. Fix the issue locally
  3. git revert HEAD if needed
  4. Re-run pre-flight checks
  5. 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

レビュー

💬

レビュー機能は近日公開予定です