A
Size: a a a
A
A
A
A
A
A
A
Я
Я
RP
Я
AM
AM
AK
➜ my_microservice git:(feature_x) ✗ echo $SERVICE_NAME
my_microservice
➜ my_microservice git:(feature_x) ✗ iex
Erlang/OTP 22 [erts-10.5.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]
Interactive Elixir (1.9.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> System.get_env("SERVICE_NAME")
nil
iex(2)> System.fetch_env("SERVICE_NAME")
:error
BB
I
✗ VAR=123 iex
Erlang/OTP 22 [erts-10.5.5] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] [dtrace]
Interactive Elixir (1.9.4) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> System.get_env("VAR")
"123"
AK
Z
iex -S mix
у меня подхватываются переменные, а в проде так не запускают вообщеSK
BB