You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Docker compose file is simply setting the environment variables in the containers. Becuase Thanks for pointing this out! Environment variables are always strings (no flexibility herehttp://stackoverflow.com/questions/2953646/how-to-declare-and-use-boolean-variables-in-shell-script). process.env['PROD_MAIL_SECURE_CONNECTION'] === 'true should work like the stack overflow you provided. I will take a look at the function's parsing of these variables.
Hi, first of all, congrats for this job.
I don't know how do you use boolean variables from
docker-compose
because in my tries these variables are converted fromboolean
tostring
.Example:
And then, inside the container:
To work around this problem, I have edited the
config.js
file to useJSON.parse
in specific variables, but I think theCheckEnvVar
function could be improved testing fortrue
orfalse
strings, and then convert the value, like in http://stackoverflow.com/questions/3976714/converting-string-true-false-to-boolean-valueThe text was updated successfully, but these errors were encountered: