deployed ok
This commit is contained in:
parent
cad29dc487
commit
debb4bb0a1
@ -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
|
||||
|
||||
@ -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
|
||||
@ -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] = ["*"]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user