deployed ok

This commit is contained in:
johnpccd 2025-05-24 05:35:18 +02:00
parent cad29dc487
commit debb4bb0a1
3 changed files with 4 additions and 8 deletions

View File

@ -16,3 +16,4 @@ pinecone-client==2.2.4
pillow==10.1.0 pillow==10.1.0
python-slugify==8.0.1 python-slugify==8.0.1
email-validator==2.1.0.post1 email-validator==2.1.0.post1
pymongo==4.5.0

View File

@ -18,14 +18,6 @@ fi
export ENVIRONMENT=development export ENVIRONMENT=development
export LOG_LEVEL=DEBUG 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 # Start server in development mode with hot reloading
echo "Starting development server..." echo "Starting development server..."
uvicorn main:app --host 0.0.0.0 --port 8000 --reload uvicorn main:app --host 0.0.0.0 --port 8000 --reload

View File

@ -8,6 +8,9 @@ class Settings(BaseSettings):
PROJECT_NAME: str = "Image Management API" PROJECT_NAME: str = "Image Management API"
API_V1_STR: str = "/api/v1" API_V1_STR: str = "/api/v1"
# Environment
ENVIRONMENT: str = "development"
# CORS settings # CORS settings
CORS_ORIGINS: List[str] = ["*"] CORS_ORIGINS: List[str] = ["*"]