Skip to content

Commit 47437cf

Browse files
JacobCoffeeclaude
andcommitted
fix: correct Litestar CLI command syntax for Railway deployment
The --app flag must be passed to the main litestar command, not the run subcommand. Also changed --workers to -W for compatibility. Before: litestar run --app ... --workers 2 After: litestar --app ... run -W 2 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 73569c3 commit 47437cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nixpacks.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ cmds = [
1212
]
1313

1414
[start]
15-
cmd = 'uv run python -m byte_api.scripts.migrate && uv run litestar run --app byte_api.app:create_app --host 0.0.0.0 --port $PORT --workers 2'
15+
cmd = 'uv run python -m byte_api.scripts.migrate && uv run litestar --app byte_api.app:create_app run --host 0.0.0.0 --port $PORT -W 2'

railway.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"builder": "NIXPACKS"
55
},
66
"deploy": {
7-
"startCommand": "uv run python -m byte_api.scripts.migrate && uv run litestar run --app byte_api.app:create_app --host 0.0.0.0 --port $PORT --workers 2"
7+
"startCommand": "uv run python -m byte_api.scripts.migrate && uv run litestar --app byte_api.app:create_app run --host 0.0.0.0 --port $PORT -W 2"
88
}
99
}

0 commit comments

Comments
 (0)