Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-c no longer works but --command does #234

Open
jboolean opened this issue Nov 27, 2022 · 1 comment
Open

-c no longer works but --command does #234

jboolean opened this issue Nov 27, 2022 · 1 comment

Comments

@jboolean
Copy link

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?

@Alsheh
Copy link

Alsheh commented Sep 5, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants