Skip to content

Commit 9aa25f9

Browse files
authored
Merge pull request #781 from knollfear/railway-app-name-change
Fix Railway CLI command
2 parents 3a2fabe + fd127a4 commit 9aa25f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fasthtml/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def railway_deploy(
3636
):
3737
"""Deploy a FastHTML app to Railway"""
3838
nm,ver = check_output("railway --version".split()).decode().split()
39-
assert nm=='railwayapp', f'Unexpected railway version string: {nm}'
39+
assert nm=='railway', f'Unexpected railway version string: {nm}'
4040
if ver2tuple(ver)<(3,8): return print("Please update your railway CLI version to 3.8 or higher")
4141
cp = run("railway status --json".split(), capture_output=True)
4242
if not cp.returncode:

nbs/api/09_cli.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"):\n",
8383
" \"\"\"Deploy a FastHTML app to Railway\"\"\"\n",
8484
" nm,ver = check_output(\"railway --version\".split()).decode().split()\n",
85-
" assert nm=='railwayapp', f'Unexpected railway version string: {nm}'\n",
85+
" assert nm=='railway', f'Unexpected railway version string: {nm}'\n",
8686
" if ver2tuple(ver)<(3,8): return print(\"Please update your railway CLI version to 3.8 or higher\")\n",
8787
" cp = run(\"railway status --json\".split(), capture_output=True)\n",
8888
" if not cp.returncode:\n",

0 commit comments

Comments
 (0)