feat: add --api-url flag to procedural flows seed script
Allows running against remote environments like Railway. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user