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

オープン
#100 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
devops

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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).

主要言語
Python
スター
0
フォーク
0
平均マージ
13分
マージ済み PR(30日)
62

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nyjc-computing/campus-admin のほかの issue

nyjc-computing/campus-admin の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。