Skip to content

Commit

Permalink
allow to inject root path through env var
Browse files Browse the repository at this point in the history
  • Loading branch information
masci committed Feb 22, 2024
1 parent 55e2b4e commit 8f86a90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hayhooks/server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@


def create_app():
app = FastAPI()
if root_path := os.environ.get("HAYHOOKS_ROOT_PATH"):
app = FastAPI(root_path=root_path)
else:
app = FastAPI()

# Deploy all pipelines in the pipelines directory
pipelines_dir = os.environ.get("HAYHOOKS_PIPELINES_DIR")
Expand Down

0 comments on commit 8f86a90

Please sign in to comment.