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


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="idi527" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  idi527
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Config files are probably evaluated before your app is loaded.</p>
<p>You can set ssl opts in you application’s <code>start</code> callback, probably.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="104232" 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/including-data-files-in-a-distillery-release/2813/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-104232" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="104232"
                     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="104284" data-post-id="104284">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Thanks, I ended doing this:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">defmodule App.Repo do
  use Ecto.Repo, otp_app: :app

  @doc """
  Dynamically loads the repository url from the
  DATABASE_URL environment variable.
  """
  def init(_, opts) do
    opts =
      opts
      |&gt; put_env(:ssl_opts)
      |&gt; put_env(:url)
      |&gt; put_env(:pool_size)

    {:ok, opts}
  end

  defp put_env(opts, key) do
    case load_env(key) do
      nil -&gt; opts
      val -&gt; Keyword.put(opts, key, val)
    end
  end

  defp load_env(:ssl_opts) do
    [cacertfile: "#{:code.priv_dir(:app)}/rds-combined-ca-bundle.pem"]
  end

  defp load_env(:url), do: System.get_env("DATABASE_URL")
  defp load_env(:pool_size), do: String.to_integer(System.get_env("POOL_SIZE"))
end
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="104284" 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/including-data-files-in-a-distillery-release/2813/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-104284" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="104284"
                     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>