You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started a localstack container by running localstack start and in another window ran serverless deploy --stage local. The lambda managed to be deployed in localstack but hitting the api route GET / returned a 502 error.
and here is the spawned container for the lambda invocation
without running serverless deploy --stage local but using serverless wsgi serve works fine but I would like to test the app as close to cloud environment as possible.
This discussion was converted from issue #246 on October 05, 2023 09:34.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I was trying out the alternative directory structure locally in https://www.serverless.com/plugins/serverless-wsgi, but it does not seem to work.
my file structure:
and my serverless framework yaml:
I started a localstack container by running
localstack start
and in another window ranserverless deploy --stage local
. The lambda managed to be deployed in localstack but hitting the api route GET/
returned a 502 error.and here is the spawned container for the lambda invocation
without running
serverless deploy --stage local
but usingserverless wsgi serve
works fine but I would like to test the app as close to cloud environment as possible.my
requirements.txt
is:using python 3.11
Beta Was this translation helpful? Give feedback.
All reactions