18 lines
644 B
Python
18 lines
644 B
Python
from pathlib import Path
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
|
|
|
|
def test_railway_services_use_the_product_frontend_and_dynamic_ports() -> None:
|
|
web = (ROOT / "deploy" / "railway-web.Dockerfile").read_text(encoding="utf-8")
|
|
api = (ROOT / "deploy" / "railway-api.Dockerfile").read_text(encoding="utf-8")
|
|
|
|
assert "COPY frontend/package.json frontend/package-lock.json" in web
|
|
assert "--hostname 0.0.0.0" in web and "${PORT:-3000}" in web
|
|
assert "next-env.d.ts" not in web
|
|
|
|
assert "COPY SKILL.md mcp_server.py" in api
|
|
assert "--host 0.0.0.0" in api and "${PORT:-5200}" in api
|
|
assert "http.server" not in api
|