DE

deploy-railway

Manages Railway deployment configuration, variables, and status updates via CLI.

Install

mkdir -p .claude/skills/deploy-railway && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18231" && unzip -o skill.zip -d .claude/skills/deploy-railway && rm skill.zip

Installs to .claude/skills/deploy-railway

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Deploy applications to Railway. Use when deploying services, databases, or full-stack applications to Railway PaaS. Covers Railway CLI and configuration.
153 chars✓ has a “when” trigger
Beginner

Key capabilities

  • Manage database services
  • Set custom domains
  • View deployment logs

How it works

The skill uses the Railway CLI to initialize a project, link a repository, configure build settings, and deploy the application.

Inputs & outputs

You give it
Application source code
You get back
Deployed application on Railway

When to use deploy-railway

  • Deploy app to Railway
  • Configure env variables
  • Check deployment status

About this skill

Deploy to Railway

Why Railway?

  • Zero config deployments
  • Automatic HTTPS
  • Built-in databases
  • Environment management
  • Preview environments

Quick Start

# Install CLI
npm install -g @railway/cli

# Login
railway login

# Initialize project
railway init

# Deploy
railway up

Configuration

railway.json

{
  "build": {
    "builder": "NIXPACKS"
  },
  "deploy": {
    "startCommand": "npm start",
    "healthcheckPath": "/health",
    "restartPolicyType": "ON_FAILURE"
  }
}

Environment Variables

# Set variable
railway variables set DATABASE_URL=postgres://...

# Set from file
railway variables set < .env.production

Database Setup

# Add PostgreSQL
railway add --database postgres

# Get connection URL
railway variables get DATABASE_URL

Deployment Workflow

1. Connect Repo

railway link

2. Configure Build

Railway auto-detects most frameworks. Override with:

# Nixpacks (default)
railway up

# Dockerfile
railway up --dockerfile

3. Set Domain

railway domain

Best Practices

  1. Use Preview Environments: Test PRs before merge
  2. Separate Databases: Different DB per environment
  3. Use Variables: Never hardcode secrets
  4. Health Checks: Enable for reliability
  5. Logs: Use railway logs for debugging

Common Commands

# View logs
railway logs

# Open dashboard
railway open

# Run command in environment
railway run npm run migrate

# List services
railway status

When not to use it

  • When deploying to a platform other than Railway PaaS
  • When not deploying services, databases, or full-stack applications

Prerequisites

@railway/cli

Limitations

  • Limited to Railway PaaS deployments
  • Requires explicit configuration for Dockerfile builds

How it compares

This skill automates the deployment steps to Railway using CLI commands, unlike manually configuring each aspect through a web interface.

Compared to similar skills

deploy-railway side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
deploy-railway (this skill)05moReviewBeginner
deployment-pipeline-design62moReviewAdvanced
cloudflare-deploy35moReviewIntermediate
artifactory-module-architecture42moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

deployment-pipeline-design

wshobson

Design multi-stage CI/CD pipelines with approval gates, security checks, and deployment orchestration. Use when architecting deployment workflows, setting up continuous delivery, or implementing GitOps practices.

670

cloudflare-deploy

davila7

Deploy applications and infrastructure to Cloudflare using Workers, Pages, and related platform services. Use when the user asks to deploy, host, publish, or set up a project on Cloudflare.

342

artifactory-module-architecture

TencentBlueKing

Artifactory 制品库模块架构指南,涵盖制品上传下载、存储后端适配、制品元数据、清理策略、权限控制。当用户开发制品库功能、处理制品存储、配置清理策略或实现制品管理时使用。

419

deployment-engineer

sickn33

Expert deployment engineer specializing in modern CI/CD pipelines, GitOps workflows, and advanced deployment automation. Masters GitHub Actions, ArgoCD/Flux, progressive delivery, container security, and platform engineering. Handles zero-downtime deployments, security scanning, and developer experience optimization. Use PROACTIVELY for CI/CD design, GitOps implementation, or deployment automation.

418

genkit-infra-expert

jeremylongshore

Execute use when deploying Genkit applications to production with Terraform. Trigger with phrases like "deploy genkit terraform", "provision genkit infrastructure", "firebase functions terraform", "cloud run deployment", or "genkit production infrastructure". Provisions Firebase Functions, Cloud Run services, GKE clusters, monitoring dashboards, and CI/CD for AI workflows.

15

managing-deployment-rollbacks

jeremylongshore

Deploy use when you need to work with deployment and CI/CD. This skill provides deployment automation and orchestration with comprehensive guidance and automation. Trigger with phrases like "deploy application", "create pipeline", or "automate deployment".

11

Search skills

Search the agent skills registry