From debb4bb0a1807384abf7d08cbda0786a6cae9c50 Mon Sep 17 00:00:00 2001 From: johnpccd Date: Sat, 24 May 2025 05:35:18 +0200 Subject: [PATCH] deployed ok --- requirements.txt | 1 + scripts/start.sh | 8 -------- src/core/config.py | 3 +++ 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/requirements.txt b/requirements.txt index 1490bd7..1223b59 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,3 +16,4 @@ pinecone-client==2.2.4 pillow==10.1.0 python-slugify==8.0.1 email-validator==2.1.0.post1 +pymongo==4.5.0 diff --git a/scripts/start.sh b/scripts/start.sh index ad16ae0..ed37250 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -18,14 +18,6 @@ fi export ENVIRONMENT=development export LOG_LEVEL=DEBUG -# Check for .env file and load it -if [ -f ".env" ]; then - echo "Loading environment variables from .env file" - export $(grep -v '^#' .env | xargs) -else - echo "WARNING: No .env file found. Using defaults or environment variables." -fi - # Start server in development mode with hot reloading echo "Starting development server..." uvicorn main:app --host 0.0.0.0 --port 8000 --reload \ No newline at end of file diff --git a/src/core/config.py b/src/core/config.py index b035b14..7bf420f 100644 --- a/src/core/config.py +++ b/src/core/config.py @@ -8,6 +8,9 @@ class Settings(BaseSettings): PROJECT_NAME: str = "Image Management API" API_V1_STR: str = "/api/v1" + # Environment + ENVIRONMENT: str = "development" + # CORS settings CORS_ORIGINS: List[str] = ["*"]