Gymapp railway deploy

From Emifacio/gymAppBack · View interactive version

Gymapp railway deploy is an AI agent skill from the GitHub repository Emifacio/gymAppBack. 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 rema

How to use this skill

Skill file

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

  1. Read README.md, railway.toml, Dockerfile, Procfile, requirements.txt, .env.example, app/main.py, and app/workers/celery_app.py.
  2. Confirm the web service boots the FastAPI app from app.main:app and listens on Railway's PORT.
  3. Confirm the health endpoint is GET /health, not just /.
  4. Check whether migrations, Redis, and Celery require separate Railway services or startup commands.
  5. After edits, run lightweight verification commands and summarize any remaining Railway-side steps for the user.

Deployment Audit

App Entrypoint

sh -c "uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-8000}"

Runtime Dependencies

Environment Variables

Celery and Background Work

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

Startup Failures

Runtime Failures

Output

When using this skill:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.