railway-deploy
/railway-deploy
Wdraża projekty na Railway: tworzy Dockerfile i railway.toml, ustawia zmienne środowiskowe, konfiguruje usługi web i worker oraz wdraża przez CLI lub GraphQL API.
- Autor
- ivy00johns ↗
- Repozytorium
- skill-madness ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 25.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 4
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 1
Brak sygnałów. Repozytorium zmienione 25.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Wdraża projekty na Railway: tworzy Dockerfile i railway.toml, ustawia zmienne środowiskowe, konfiguruje usługi web i worker oraz wdraża przez CLI lub GraphQL API.
Wyzwalacze z opisu
Oryginalny opis (EN)
Deploy projects to Railway — Dockerfile creation, railway.toml config, environment variables, multi-service setups (web + worker), and deployment via CLI or GraphQL API. Trigger on "deploy to Railway", "ship it on Railway", or "set up Railway hosting", and on questions about Railway configuration, health checks, deployment status, or env var management.
Jak działa
- How Railway Works
- Prerequisites
- Deployment Approaches
- Setting Up a New Project for Railway
- Environment Variables, Multi-Service, Troubleshooting
- Reference Files
Podgląd SKILL.md
--- name: railway-deploy version: 1.4.0 description: > Deploy projects to Railway — Dockerfile creation, railway.toml config, environment variables, multi-service setups (web + worker), and deployment via CLI or GraphQL API. Trigger on "deploy to Railway", "ship it on Railway", or "set up Railway hosting", and on questions about Railway configuration, health checks, deployment status, or env var management. requires_agent_teams: false requires_claude_code: false min_plan: starter owns: directories: [] patterns: ["railway.toml"] shared_read: ["*"] allowed-tools: ["Read", "Write", "Edit", "Bash", "Glob", "Grep"] composes_with: ["infrastructure-agent", "deployment-checklist"] spawned_by: [] --- # Railway Deployment Deploy projects to Railway with proper Dockerfile, config, and multi-environment support. ## How Railway Works Railway builds and runs your app from a Dockerfile (or auto-detects with Nixpacks). Each project can have multiple **services** (web, worker, cron) across multiple **environments** (dev, production). Railway assigns a dynamic `PORT` env var that your app must listen on. ## Prerequisites **Railway credentials** (for GraphQL API deployments) go in the current project's repo-root `.env` file — see `.env.example` for the full list. Get your API token at `https://railway.app/account/tokens`. **Railway CLI** should be installed and authenticated. Verify: ```bash railway --version # Should show v4.x+ railway whoami # Should show logged-in user ``` If not installed, prompt the user before any global package installation or production deployment: `brew install railway` (macOS) or `npm i -g @railway/cli`, then `railway login`. Production actions, service scaling, and cloud deploys require explicit confirmation. ## Deployment Approaches Railway supports two deployment methods. Choose based on the project's needs: ### Approach 1: Railway CLI (simple projects) Best for quick deploys, single-service apps, and projects where you want Railway to auto-detect the build. ```bash # Link to existing project (or create new) railway link # Interactive — select project + environment # OR railway init # Create new project # Deploy railway up # Builds and deploys from current directory # Check status railway status railway logs ``` ### Approach 2: GraphQL API + Deploy Script (multi-service, CI/CD) Best for projects with multiple services (web + worker), automated deployments, or when you need programmatic control. See `references/deploy-script.md` for a ready-to-use deploy script pattern. ## Setting Up a New Project for Railway 1. **Detect the stack.** Read `package.json` / `requirements.txt` / `Cargo.toml` / `go.mod` to identify language, framework, entry point, and system deps. See `references/dockerfile-recipes.md` for the full stack detection checklist. 2. **Create the Dockerfile.** Pick the recipe matching your stack — `references/dockerfile-recipes.md` has Python/FastAPI, Node.js/Express/Next.js, and Astro templates, plus Dockerfile best practices. 3. **Create `railway.toml`.** The standard template with `startCommand`, `healthcheckPath`, `restartPolicyType` is in `references/dockerfile-recipes.md`. 4. **Create `.dockerignore`.** Exclude dev deps, local DBs, build artifacts. Template in `references/dockerfile-recipes.md`. 5. **Add a health check endpoint.** Railway uses it to know when the app is ready. Python/FastAPI and Node/Express snippets are in `references/dockerfile-recipes.md`. > **Optional fallback:** Railway prefers Dockerfile but falls back to a Procfile if present — only relevant when you can't ship a Dockerfile. See the Procfile section in `references/dockerfile-recipes.md`. ## Environment Variables, Multi-Service, Troubleshooting For env var management (`railway variables set`), multi-service setups (web + worker on the same project), the full deployment checklist, and troubleshooting common deploy failures (build errors, crash loops, health check timeouts, 502 errors, port binding), read `references/multi-service-setup.md`. ## Reference Files - `references/dockerfile-recipes.md` — per-language Dockerfile templates (Python, Node, Astro), railway.toml, .dockerignore, health check endpoints, Procfile - `references/multi-service-setup.md` — env vars, multi-service (web + worker), deployment checklist, troubleshooting - `references/deploy-script.md` — Python deploy script pattern using Railway's GraphQL API
Pliki w paczce (4)
- SKILL.md 4 KB
- references/deploy-script.md 5 KB
- references/dockerfile-recipes.md 3 KB
- references/multi-service-setup.md 2 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · ivy00johns/skill-madness | 100 | MIT |
| TerminalSkills/skills | 100 | Apache-2.0 |
| davila7/claude-code-templates | 95 | MIT |
Migawka bazy z 28.10.2026 · wersja paczki 82d10e576b8c (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 95railway-environment
Odpytuje, przygotowuje i stosuje zmiany konfiguracji środowisk Railway: zmienne środowiskowe, ustawienia źródła, budowania i wdrożenia oraz usuwanie usług. - 95memstack-deployment-railway-deploy
Wdraża aplikacje Node.js, Python lub Docker na Railway, ze zmiennymi środowiskowymi i monitoringiem. - 95railway-new
Tworzy projekty, usługi i bazy danych Railway z właściwą konfiguracją, także przy wdrożeniu z GitHub i dodawaniu usług do istniejących projektów. - 90devops/deploy-railway
Wdraża usługi backendowe i bazy danych na Railway przez CLI, obsługując Node.js, Python, Go, Java i Docker. - 90Railway CLI
Obsługuje Railway CLI: logowanie, zarządzanie kontekstem, wdrażanie usług, monitorowanie i rozwiązywanie problemów z infrastrukturą. - 100run-railway
Obsługuje CLI Railway: wdrożenia, logi, zmienne środowiskowe, łączenie projektu, SSH, powłoki baz danych i skalowanie.