Skip to content

Commit

Permalink
switch from .config to .env
Browse files Browse the repository at this point in the history
  • Loading branch information
LanaBot committed Jan 23, 2024
1 parent 31ed9cd commit c5c0560
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 7 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
from kairos.factory import create_app
from dotenv import load_dotenv
import os

load_dotenv()

app = create_app()
app.config.from_object('config.Config')
app.config["PRCORE_HEADERS"] = {"Authorization": os.getenv("PRCORE_TOKEN")}
app.config["PRCORE_BASE_URL"] = os.getenv("PRCORE_BASE_URL")
app.config["MONGO_URI"] = os.getenv("MONGO_URI")
7 changes: 0 additions & 7 deletions config.py

This file was deleted.

0 comments on commit c5c0560

Please sign in to comment.