<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="291473" data-post-id="291473">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Nicd" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Nicd/120/2357_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Nicd
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I know that, the comment is still talking about storing application environment values, whereas I took the original comment to talk about OS environment variables being stored implicitly somehow.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="291473" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/config-exs-and-system-get-env-2-are-values-actually-read-at-runtime/56481/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-291473" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="291473"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #11"></div>
  </section>
</div>
    <div class="postbit" id="291475" data-post-id="291475">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="fireproofsocks" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/fireproofsocks/120/7669_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  fireproofsocks
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I didn’t mean to cause any confusion. “Snapshot” seems like a good term for how values are read during release builds.  Thanks for the link to <code>say_cheez_ex</code>.</p>
<blockquote>
<p>I just put everything possible in <code>runtime.exs</code> .</p>
</blockquote>
<p>Me too. I wrote the <a href="https://hexdocs.pm/dotenvy/readme.html" rel="noopener nofollow ugc">dotenvy</a> package to help make it easier to work with configuration sets at runtime.</p>
<p>The takeaways for me are to evaluate whether or not something NEEDS to be known at compile time.  Often, a value can be supplied at runtime just fine.  Supplying values at runtime can make testing easier, but there may be performance tradeoffs, so YYMV.</p>
<p>I wrote an article about this Dotenvy and my first dig into config:<br>
<a href="https://fireproofsocks.medium.com/configuration-in-elixir-with-dotenvy-8b20f227fc0e" class="onebox" target="_blank" rel="noopener nofollow ugc">https://fireproofsocks.medium.com/configuration-in-elixir-with-dotenvy-8b20f227fc0e</a></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="291475" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/config-exs-and-system-get-env-2-are-values-actually-read-at-runtime/56481/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-291475" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="291475"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>