-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
The --stage parameter ignored when looking for the right .env file #59
Comments
Im having the same problem. |
Thanks, I will look at this |
The env resolution checks for env in the following order. Can you check to see if these are not set to make sure they are not taking precedence?
|
Hi Colynb! Maybe @edu-aguilar will provide his example. Thanks again! |
Finally I had time to recheck this issue. I have two different folders with serverless.yml. The above issue happens only in one of them. It looks like the problem relates to versions of some depended package(s). I was unable to determine which one (it's not the serverless-dotenv-plugin itself). For now think you can close this issue. Thanks for help! |
I'm running the serverless script with the next command line:
client deploy --stage prod --region eu-west-1 --aws-profile MyProfile
As you see I'm specifying the --stage parameter, which according to this documentation should use the .env.prod file.
But I'm getting this message:
Serverless: DOTENV: Could not find .env file.
All .env files are in sub-folder envs and here is my serverless config:
The text was updated successfully, but these errors were encountered: