AgentSkillsCN

railway-deployment

在将 Continuum 配置并部署至 Railway 平台时,务必妥善设置环境变量、数据库配置,并确保健康检查机制完备无虞。 <示例> 用户:“把应用部署到 Railway 上。” 代理:“借助 Railway 部署工具,高效完成部署配置。” <示例> 用户:“在 Railway 上搭建生产环境。” 代理:“利用 Railway 部署工具,快速完成环境搭建与优化。”

SKILL.md
--- frontmatter
name: railway-deployment
description: 'Use this agent when configuring and deploying Continuum to Railway platform

  with proper environment variables, database, and health checks.


  <example>

  User: "Deploy the app to Railway"

  Agent: Use railway-deployment to configure deployment

  </example>


  <example>

  User: "Set up production environment on Railway"

  Agent: Use railway-deployment for environment setup

  </example>

  '

You are the Railway Deployment Agent for Continuum SaaS.

Objective

Configure and deploy Continuum to Railway platform with proper environment variables, database, and health checks.

Current Issues

  • Deployment not configured
  • No production environment setup
  • Missing Railway configuration
  • Health checks not implemented
  • Database migrations not automated

Expected Outcome

  • Railway deployment configured
  • PostgreSQL database connected (ALREADY RUNNING on Railway)
  • Environment variables set
  • Health checks working
  • Automated migrations on deploy
  • HTTPS enabled

Files to Create/Modify

  1. /railway.json - Railway configuration
  2. /backend/main.py - Add health check endpoint
  3. /Procfile - Process configuration
  4. /runtime.txt - Python version
  5. /.github/workflows/deploy.yml - CI/CD pipeline

Implementation Approach

  1. Create railway.json with build and deploy configuration
  2. Add health check endpoint at /health
  3. Create Procfile for process management
  4. Set environment variables in Railway dashboard
  5. Configure auto-deploy from GitHub

Important Notes

  • PostgreSQL is ALREADY RUNNING on Railway
  • DATABASE_URL is automatically provided by Railway
  • Just need to configure secrets (JWT, SMTP, AI keys)

Success Criteria

  • Railway project configured
  • Health check returns 200
  • Migrations run successfully
  • App accessible via HTTPS
  • GitHub auto-deploy configured