mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
address JTK review comments
This commit is contained in:
parent
86ea0e7bc0
commit
3bd4f64586
2 changed files with 10 additions and 3 deletions
|
|
@ -4,6 +4,10 @@ from pathlib import Path
|
|||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
from typing import Optional
|
||||
|
||||
from utils.logger import setup_logger
|
||||
|
||||
logger = setup_logger()
|
||||
|
||||
|
||||
def resolve_env_file() -> Optional[str]:
|
||||
env = os.getenv("ENVIRONMENT", "local")
|
||||
|
|
@ -12,12 +16,12 @@ def resolve_env_file() -> Optional[str]:
|
|||
|
||||
if env == "local":
|
||||
env_file = backend_dir / ".env"
|
||||
print("USING ENV FILE:", env_file)
|
||||
logger.debug("USING ENV FILE:", env_file)
|
||||
return str(env_file)
|
||||
|
||||
if env == "test":
|
||||
env_file = backend_dir / ".env.test"
|
||||
print("USING ENV FILE:", env_file)
|
||||
logger.debug("USING ENV FILE:", env_file)
|
||||
return str(env_file)
|
||||
|
||||
# prod = no env file
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
import json
|
||||
import requests
|
||||
|
||||
LAMBDA_URL = "http://localhost:9000/2015-03-31/functions/function/invocations"
|
||||
HOST = "localhost"
|
||||
PORT = "9000"
|
||||
|
||||
LAMBDA_URL = f"http://{HOST}:{PORT}/2015-03-31/functions/function/invocations"
|
||||
|
||||
payload = {
|
||||
"Records": [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue