brefphp / bref

Serverless PHP on AWS Lambda
https://bref.sh
MIT License
3.09k stars 367 forks source link

Separate Serverless .yml files #1674

Closed AtteR closed 10 months ago

AtteR commented 10 months ago

Hello,

I noticed that the serverless bref:cli command now reads always serverless.yml file, but in my projects I have for example serverless-staging.yml and serverless-production.yml. Normally you could select any of these with serverless --profile=<.yml file>, but I did not figure out if this is supported and docs did not mention it.

In the docs there is mention of --stage but not sure what this does.

So, please add --profile flag to the serverless bref:cli command.

Thank you!

mnapoli commented 10 months ago

serverless bref:cli is a serverless command, so all the options you usually use with other commands (like serverless deploy) should work.

Have you tried that?

AtteR commented 10 months ago

Hmm, yes sorry, seems I was using wrong command. :face_with_spiral_eyes: It is --config not --profile, should have looked today first with fresh eyes before opening issue.

Thanks! I will close this.