From 1b86f669546468794f04ef873e86e3df3470e99b Mon Sep 17 00:00:00 2001 From: Michael Chihlas Date: Sat, 14 Feb 2026 23:48:55 -0500 Subject: [PATCH] feat: add --api-url flag to procedural flows seed script Allows running against remote environments like Railway. Co-Authored-By: Claude Opus 4.6 --- backend/scripts/seed_procedural_flows.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/scripts/seed_procedural_flows.py b/backend/scripts/seed_procedural_flows.py index fe1dec24..4436b330 100644 --- a/backend/scripts/seed_procedural_flows.py +++ b/backend/scripts/seed_procedural_flows.py @@ -985,15 +985,17 @@ async def seed_procedural_flows(): def main(): - global ADMIN_EMAIL, ADMIN_PASSWORD + global ADMIN_EMAIL, ADMIN_PASSWORD, API_BASE_URL parser = argparse.ArgumentParser(description="Seed procedural flow templates") parser.add_argument("--email", required=True, help="Admin email for authentication") parser.add_argument("--password", required=True, help="Admin password") + parser.add_argument("--api-url", default=API_BASE_URL, help="API base URL (default: http://localhost:8000/api/v1)") args = parser.parse_args() ADMIN_EMAIL = args.email ADMIN_PASSWORD = args.password + API_BASE_URL = args.api_url asyncio.run(seed_procedural_flows())