Skip to content

Promote staging → main: fix uvicorn $PORT expansion - #12

Merged
qiuethan merged 2 commits into
mainfrom
staging
Jul 3, 2026
Merged

Promote staging → main: fix uvicorn $PORT expansion#12
qiuethan merged 2 commits into
mainfrom
staging

Conversation

@qiuethan

@qiuethan qiuethan commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Deploy-blocker fix (Railway pre-deploy failing with 'Invalid value for --port: ${PORT}'). Repromoting to main.

🤖 Generated with Claude Code

qiuethan and others added 2 commits July 3, 2026 00:55
Railway wasn't running the string startCommand through a shell, so
'${PORT}' was passed literally to uvicorn, which rejected it as not a
valid integer. Wrapping in 'sh -c' lets the shell expand $PORT (injected
by Railway) at runtime.

Fixes production deploy failure across both APIs.
fix(deploy): wrap uvicorn startCommand in sh -c so $PORT expands
@qiuethan
qiuethan merged commit 2c16535 into main Jul 3, 2026
9 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant