I'm unable to get my application to read an environment variable set on Ubuntu. I keep getting the message below:
** (ArgumentError) could not fetch environment variable "VARIABLE" because it is not set
This is what I have in my prod.exs
variable: System.get_env("VARIABLE") || "${VARIABLE}"
I then try to run my application as below
RELX_REPLACE_OS_VARS=true /home/app/prod/rel/my_app/bin/my_app start
I've looked everywhere but tutorials either seem mostly to lean towards Phoenix which I do not have in my application or using an additional dependency which I am not too inclined to do.