diff --git a/deploy.sh b/deploy.sh index 960c32d..aa7d351 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,3 +1,4 @@ #!/bin/bash +source venv/bin/activate gcloud builds submit --tag gcr.io/rothbard-staging2-12345/rothbard-app gcloud run deploy rothbard-app --image gcr.io/rothbard-staging2-12345/rothbard-app:latest --region us-central1 \ No newline at end of file diff --git a/sync.py b/sync.py index a795a4e..fbbe2e9 100644 --- a/sync.py +++ b/sync.py @@ -11,6 +11,8 @@ import threading from typing import List, Dict, Any, Optional from datetime import datetime import pytz +from dotenv import load_dotenv +load_dotenv() # Add the current directory to the Python path so we can import app and models sys.path.append(os.path.dirname(os.path.abspath(__file__)))