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
I was looking at this example from ElixirSchool to add a config section to my app:
config:kaffe,producer: [endpoints: [localhost: 9092],# endpoints references [hostname: port]. Kafka is configured to run on port 9092.# In this example, the hostname is localhost because we've started the Kafka server# straight from our machine. However, if the server is dockerized, the hostname will# be called whatever is specified by that container (usually "kafka")topics: ["our_topic","another_topic"],# add a list of topics you plan to produce messages to]
For running an app in the wild I would need to replace the hostname/port with something variable, like ENV VARS.
The top example uses strings for topics, but a list for the hostnames. How would I put ENV vars into the config? And why is it so?
Thank you!
The text was updated successfully, but these errors were encountered:
I was looking at this example from ElixirSchool to add a config section to my app:
For running an app in the wild I would need to replace the hostname/port with something variable, like ENV VARS.
The top example uses strings for topics, but a list for the hostnames. How would I put ENV vars into the config? And why is it so?
Thank you!
The text was updated successfully, but these errors were encountered: