Open minusreality opened 5 years ago
Can confirm it will still look for a serverless.yml file
serverless deploy --config ./serverless-template.yml
Serverless Error ---------------------------------------
This command can only be run in a Serverless service directory
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
OS: darwin
Node Version: 8.10.0
Serverless Version: 1.44.1
If you just create an empty serverless.yml
it will give you a different error:
touch serverless.yml
serverless deploy --config serverless-template.yml
Type Error ---------------------------------------------
obj must be an Array or an Object
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
I'm using 1.71.3 and the --config
option works fine.
Does not seem to be present in current release 1.44.1 (2019-05-28), but feature issue was closed and claimed complete as of 6/11/2019.
https://github.com/serverless/serverless/pull/5589