Skip to content

Commit

Permalink
fix api tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kgarbacinski committed May 16, 2024
1 parent 8cf2143 commit 9cfd7ec
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions backend/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,17 @@


def create_app(config=None):
if config is None:
env = os.getenv("OCTANT_ENV")
config = ProdConfig if env == "production" else DevConfig

app = Flask(
__name__,
template_folder=f"{config.PROJECT_ROOT}/templates",
static_folder=f"{config.PROJECT_ROOT}/static",
)
app.teardown_request(teardown_session)

if config is None:
env = os.getenv("OCTANT_ENV")
config = ProdConfig if env == "production" else DevConfig
app.teardown_request(teardown_session)

app.config.from_object(config)

register_extensions(app)
Expand Down

0 comments on commit 9cfd7ec

Please sign in to comment.