gymapp-railway-deploy
Automates deployment configuration and debugging for GymApp on Railway.
Install
mkdir -p .claude/skills/gymapp-railway-deploy && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12532" && unzip -o skill.zip -d .claude/skills/gymapp-railway-deploy && rm skill.zipInstalls to .claude/skills/gymapp-railway-deploy
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.
Prepare, deploy, and debug the GymApp FastAPI backend on Railway. Use when Codex needs to make this repository Railway-ready, fix Railway build or startup failures, verify `railway.toml` or `Dockerfile` or `Procfile`, align environment variables for PostgreSQL, Redis, and Celery, or explain the remaining Railway-side setup for this project.Key capabilities
- →Prepare repository for Railway deployment
- →Validate app entrypoints
- →Configure environment variables for services
- →Debug Railway build failures
- →Debug Railway startup failures
- →Summarize remaining Railway-side setup
How it works
The skill reads project configuration files, confirms the web service entrypoint and port binding, and checks for service-specific requirements. It then verifies runtime dependencies and environment variables.
Inputs & outputs
When to use gymapp-railway-deploy
- →Deploying FastAPI to Railway
- →Fixing Railway deployment failures
- →Configuring backend services
About this skill
GymApp Railway Deploy
Prepare this repository for Railway, validate the app entrypoints and environment configuration, and debug deployment failures with project-specific assumptions.
Prefer repo changes and verification over generic advice. Use the files already present in this project as the source of truth.
Quick Start
- Read
README.md,railway.toml,Dockerfile,Procfile,requirements.txt,.env.example,app/main.py, andapp/workers/celery_app.py. - Confirm the web service boots the FastAPI app from
app.main:appand listens on Railway'sPORT. - Confirm the health endpoint is
GET /health, not just/. - Check whether migrations, Redis, and Celery require separate Railway services or startup commands.
- After edits, run lightweight verification commands and summarize any remaining Railway-side steps for the user.
Deployment Audit
App Entrypoint
- Confirm
app/main.pyexposesapp = FastAPI(...). - Prefer
railway.tomlas the primary Railway config when it exists. - Ensure the startup command binds to
0.0.0.0and Railway's port, for example:
sh -c "uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-8000}"
- Treat
Procfileas fallback metadata, not the main source of truth, whenrailway.tomlis present.
Runtime Dependencies
- Check
requirements.txtfor the actual runtime stack used by GymApp: FastAPI, Uvicorn, SQLAlchemy, Alembic, Redis, Celery, Pydantic v2, and PostgreSQL driver support. - If a failure points to missing build tooling or native packages, prefer the smallest fix that matches the existing Docker image strategy.
- Do not add dependencies speculatively. Tie each change to an observed import or runtime requirement.
Environment Variables
- Verify the app can resolve database configuration from Railway-provided values or a direct
DATABASE_URL. - Confirm
SECRET_KEYis required for JWT signing and document it if missing from setup instructions. - Confirm Redis and Celery settings map cleanly to
REDIS_URLor the project's equivalent broker variables. - Keep
.env.examplealigned with any newly required settings.
Celery and Background Work
- Check
app/workers/celery_app.pybefore changing worker commands. - If the user asks for full Railway deployment guidance, separate the web service from background workers when Celery is enabled.
- Recommend a dedicated worker service command only when the repository actually uses Celery tasks at runtime.
Verification
Prefer fast, local verification before declaring Railway-ready:
python -m compileall app migrations
docker compose up --build
curl http://localhost:8000/health
If Docker is unavailable or too heavy for the task, use the lightest meaningful check instead and say what was not verified.
Debugging Railway Failures
Build Failures
- Check for missing dependencies, invalid package pins, or Dockerfile copy/install order issues.
- Check whether the image installs from the correct
requirements.txtat the repo root.
Startup Failures
- Check the module path in the start command.
- Check whether the process binds to
PORT. - Check whether migrations run before the app starts and whether that ordering is intentional.
Runtime Failures
- Check missing environment variables first.
- Check database connectivity and URL parsing next.
- Check Redis or Celery broker configuration when worker startup or background jobs fail.
Output
When using this skill:
- Make the smallest repo changes needed to unblock Railway deployment.
- Name the exact files changed and the verification performed.
- Separate confirmed fixes from inferred Railway UI steps.
- If Railway access is unavailable, prepare the repo fully and then list the remaining manual steps clearly.
When not to use it
- →When the project is not the GymApp FastAPI backend
- →When not deploying to Railway
- →When not debugging Railway build or startup failures
Limitations
- →Assumes the project is the GymApp FastAPI backend
- →Focuses on Railway-specific deployment and debugging
- →Requires existing project files like `railway.toml` or `Dockerfile` for verification
How it compares
This workflow prioritizes project-specific file verification and minimal repo changes over generic advice, unlike a general deployment guide.
Compared to similar skills
gymapp-railway-deploy side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| gymapp-railway-deploy (this skill) | 0 | 5mo | Caution | Intermediate |
| azure-functions | 10 | 5mo | Review | Intermediate |
| project-workflow | 0 | 6mo | Review | Beginner |
| flash | 0 | 3mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
azure-functions
aj-geddes
Create serverless functions on Azure with triggers, bindings, authentication, and monitoring. Use for event-driven computing without managing infrastructure.
project-workflow
sumanin5
项目启动、环境搭建与日常开发工作流。涵盖 local 与 docker 两种模式下的启动指令。
flash
MachinaIO
runpod-flash SDK and CLI for deploying AI workloads on Runpod serverless GPUs/CPUs.
ops
denniszielke
>
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
fastapi-pro
sickn33
Build high-performance async APIs with FastAPI, SQLAlchemy 2.0, and Pydantic V2. Master microservices, WebSockets, and modern Python async patterns. Use PROACTIVELY for FastAPI development, async optimization, or API architecture.