-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpt_pg
More file actions
executable file
·23 lines (18 loc) · 736 Bytes
/
Copy pathpt_pg
File metadata and controls
executable file
·23 lines (18 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python3
"""
Project Tracker utility for managing tasks and roadmap items (PostgreSQL version).
Connects to the PostgreSQL database running in the k8s cluster.
"""
import sys
import os
# Set environment variables to connect to the PostgreSQL in k8s cluster
os.environ["PT_DB_HOST"] = "postgres-db.openclaw-services.svc.cluster.local"
os.environ["PT_DB_PORT"] = "5432"
os.environ["PT_DB_NAME"] = "financial_analysis"
os.environ["PT_DB_USER"] = "finance_user"
os.environ["PT_DB_PASSWORD"] = "secure_finance_password"
# Add the src directory to the path so we can import the pt_pg utility
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src'))
from pt_pg.cli import main
if __name__ == "__main__":
main()