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
Hello
I am not a developer Elixir, so I can't figure out what the problem is myself.
Our team is working with the developments of another team. And we got this stack.
I did some experiments with this value.
And I came to the conclusion that it works well if you specify this env variable in the docker file. And it does not work if you specify this env variable in this file, it is then equal to nil.
I read that env variables in Elixir are divided into compilation variables and runtime variables. This is clearly a compilation variable. But the thing is that my application has several working environments and for each environment I would like to set a different value.
Also I would not like the docker container build command to specify a value for this variable every time.
My question is:
How can I use this variable in the same code and specify its value in this file.
I need this variable because my client side application and server side application are hosted on different subdomains and I wanted to use cookies with a password that I could specify in this variable.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello
I am not a developer Elixir, so I can't figure out what the problem is myself.
Our team is working with the developments of another team. And we got this stack.
I did some experiments with this value.
And I came to the conclusion that it works well if you specify this env variable in the docker file. And it does not work if you specify this env variable in this file, it is then equal to nil.
I read that env variables in Elixir are divided into compilation variables and runtime variables. This is clearly a compilation variable. But the thing is that my application has several working environments and for each environment I would like to set a different value.
Also I would not like the docker container build command to specify a value for this variable every time.
My question is:
How can I use this variable in the same code and specify its value in this file.
I need this variable because my client side application and server side application are hosted on different subdomains and I wanted to use cookies with a password that I could specify in this variable.
Beta Was this translation helpful? Give feedback.
All reactions