ops: replace the Procfile with a platform-side startCommand override (Railpack deprecates Procfiles)

Aperta
#100 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
devops

Direzione di ricerca

Read the existing Procfile and compare its command with the requested Railway startCommand. Set that override in both dev and prod, then arrange a forced deploy because setting the value does not redeploy automatically. After verifying both environments use the dual-stack command, submit a PR deleting the Procfile; confirm the deployed behavior remains unchanged.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

chore

Operator decision 2026-11-27 (fleet-wide, recorded on nyjc-computing/campus#1295): gunicorn start commands are owned platform-side — a Railway startCommand instance override per environment — not by in-repo Procfiles: Railpack deprecates Procfiles (https://railpack.com/config/procfile), and a Procfile-defined start command silently breaks if Railpack ever drops that support. This supersedes the mechanism #94 shipped (PR #98 added the dual-stack Procfile; the dev instance override was then dropped so "the repo owns its start command"). The dual-stack bind itself is unchanged and stays fleet rule (campus docs/railway-architecture.md — the mesh is IPv6-only).

Current state (checked 2026-11-27)

  • dev campus-admin: no override — Procfile-driven dual-stack bind.
  • prod campus-admin: still the pre-cutover IPv4-only override /bin/sh -c "gunicorn --bind 0.0.0.0:$PORT --preload main:app --threads 8" — unreachable over the mesh today (the prod gateway's /admin/ route isn't wired yet, so it hasn't surfaced). Flipping this override is the same one-line change and fixes the latent break ahead of nyjc-computing/campus#1293.

Action

  1. Set the instance startCommand in both environments, mirroring today's Procfile verbatim (minus the web: prefix):

    gunicorn --bind "[::]:${PORT:-8080}" --preload --workers 2 --threads 8 --timeout 120 --graceful-timeout 30 --access-logfile - --error-logfile - main:app
    

    GUNICORN_CMD_ARGS keeps working exactly as before — gunicorn reads it regardless of how the command is launched.

  2. PR deleting the Procfile (template: nyjc-computing/campus-profile#82 — the same flip just done for campus-profile: profile#71 → profile PR #82).

Mechanics (learned on campus-profile): setting a startCommand value does not auto-redeploy — force a deploy (dashboard, or the serviceInstanceDeploy GraphQL mutation with latestCommit: true); clearing an override needs the empty string (API null is a silent no-op). Overrides take precedence over the Procfile, so step 2 is behavior-neutral.

The endgame is unchanged: when these services get proper deployment repos, migrate to railpack.json deploy.startCommand and drop the overrides (nyjc-computing/campus-profile#71 fleet note).

Supersedes the ownership outcome of #94 (the bind fix itself remains in place).

Lingua principale
Python
Stelle
0
Fork
0
Merge medio
13m
PR unite (30g)
62

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nyjc-computing/campus-admin

Tutte le issue di nyjc-computing/campus-admin

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.