minusreality / agnostic-serverless-hello-cs

Platform Agnostic Serverless Hello World Example in C#
6 stars 0 forks source link

Specifying serverless.yml file using config parameter awaiting next Serverless Framework release #2

Open minusreality opened 5 years ago

minusreality commented 5 years ago

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

AnthonyWC commented 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.
rsshilli commented 4 years ago

I'm using 1.71.3 and the --config option works fine.