Skip to content

Commit

Permalink
Deployment test 4 (same as 4) with app fed into the make_lambda_handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiabernat committed Oct 7, 2024
1 parent 59f0bf9 commit 77e46de
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
from functools import lru_cache
from apig_wsgi import make_lambda_handler

# LOGS at https://msdlive-gridcerfapp-logs.s3.amazonaws.com/

# SOURCED SCRIPT
# from dash_app.app import app
from dash_app.layout import create_app
from dash_app.app import app
# from dash_app.layout import create_app

@lru_cache(maxsize=5)
def get_wsgi_handler():
Expand All @@ -17,8 +19,8 @@ def get_wsgi_handler():
_type_: lambda handler that is wsgi compatible and backed by the Dash application
"""
return make_lambda_handler(
wsgi_app=create_app().server,
# wsgi_app=app.server,
# wsgi_app=create_app().server,
wsgi_app=app.server,
binary_support=True,
)

Expand Down

0 comments on commit 77e46de

Please sign in to comment.