serverless-wsgi
serverless-wsgi copied to clipboard
-c no longer works but --command does
I just updated from serverless 1 to 3 and serverless-wsgi from 2 to 3.
This command no longer worked:
serverless wsgi manage -c migrate --stage staging
It results in the error
Invalid "--config" value: Unsupported file extension (expected one of: yml, yaml, json, js, ts
However, this does
serverless wsgi manage --command migrate --stage staging
This doesn't seem intentional?
I'm getting the same issue with the exec command:
❯ sls wsgi exec -c "import math; print((1 + math.sqrt(5)) / 2)"
Running "serverless" from node_modules
Environment: darwin, node 20.5.1, framework 3.34.0 (local) 3.34.0v (global), plugin 6.2.3, SDK 4.3.2
Docs: docs.serverless.com
Support: forum.serverless.com
Bugs: github.com/serverless/serverless/issues
Error:
Invalid "--config" value: Unsupported file extension (expected one of: yml, yaml, json, js, mjs, cjs, ts
❯ sls --version
Running "serverless" from node_modules
Framework Core: 3.34.0 (local) 3.34.0 (global)
Plugin: 6.2.3
SDK: 4.3.2