When there is no new line in the .env file, the last environmental variable value is not picked.
Description
Let's say I have a .env file with the following values.
HR_SMTP_HOST=smtp.gmail.com
HR_SMTP_PORT=465
HR_SMTP_PASSWORD=werdrktoetkdmwl
Note that there is no new line after the last variable HR_SMTP_PASSWORD.
If we deploy the CAR app with the above .env file and run the MI server on a terminal with the command
sh micro-integrator.sh --env-file=/Users/shammi/Projects/MI/discord_issues/emailConfig/.env, it will show the following error.
ERROR {ConfigDeployer} - The value of the key:[HR_SMTP_PASSWORD] is not found.
But if we do the same with a new line at the end like below,
HR_SMTP_HOST=smtp.gmail.com
HR_SMTP_PORT=465
HR_SMTP_PASSWORD=werdrktoetkdmwl
then there will be no error reading the last variable.
It should also be noted that this error cannot be reproduced if the server is started through the VSCode extension.
Steps to Reproduce
Explained in the Description section
Version
4.4.0
Environment Details (with versions)
No response
I’d like to work on this issue. ETA: 1–2 days for a PR
I can work on this @ShammiL . Thanks
Hi @chanikag @ShammiL I had find a solution for this issue,Please assign it to me.I will add a PR as soon as possible