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


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="ohmyohmyohmy" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ohmyohmyohmy/120/38321_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  ohmyohmyohmy
                    <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 mean, where do I type Custom.DB.create_tables()? Inside here?</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">  def start(_type, _args) do
  end

</code></pre>
<p>I’ve tried putting it before and after Supervisor.start_link(children, opts), and in both cases, the program just crashes.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="382562" data-batch-url="/posts/batch_likers">
                        1
                      </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/where-is-a-phoenix-apps-main-entry-point-function/74096/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-382562" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="382562"
                     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="382563" data-post-id="382563">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>So when <code>start/2</code> is called your application is just beginning to start up. Your supervision tree is not yet started, which includes your repo. So calling <code>Custom.DB.create_tables()</code> will fail. You could run the function inside the supervision tree as well, after your repo is initialized (more flexible option) or you could run it after <code>Supervisor.start_link</code>, but you need to ensure to still return the result of that call from <code>start/2</code>. <code>start/2</code> is expected to return a value according to the Application behaviour (<a href="https://hexdocs.pm/elixir/Application.html#c:start/2" class="inline-onebox" rel="nofollow">Application — Elixir v1.20.2</a>) and commonly that would be the result of starting a supervisor. This is to ensure the application (and often the whole vm) stops when the root process exits.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="382563" 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/where-is-a-phoenix-apps-main-entry-point-function/74096/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-382563" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="382563"
                     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 #12"></div>
  </section>
</div>
    <div class="postbit" id="382564" data-post-id="382564">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="ohmyohmyohmy" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ohmyohmyohmy/120/38321_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  ohmyohmyohmy
                    <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>Mmmkay. So, I don’t know if what I’m doing now is considered best practice, but this seems to get me the result I want:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir"> def start(_type, _args) do
...
     response = Supervisor.start_link(children, opts)
      Custom.DB.create_tables()
    response

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="382564" data-batch-url="/posts/batch_likers">
                        1
                      </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/where-is-a-phoenix-apps-main-entry-point-function/74096/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-382564" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="382564"
                     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 #13"></div>
  </section>
</div>
    <div class="postbit" id="382565" data-post-id="382565">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>It’s not necessarily best practice, but also not too out of the ordinary. The difference is mostly in the effects you get if your create_tables fails to work somewhere. How you want to handle that is a different question.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="382565" data-batch-url="/posts/batch_likers">
                        1
                      </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/where-is-a-phoenix-apps-main-entry-point-function/74096/15">Post #14</a>
	                </div>
	            </div>
              <div id="likers-container-382565" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="382565"
                     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 #14"></div>
  </section>
</div>
    <div class="postbit" id="382566" data-post-id="382566">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="ohmyohmyohmy" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ohmyohmyohmy/120/38321_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  ohmyohmyohmy
                    <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>Okay. Could you point me in the right direction so I can explore what <a href="https://forum.elixirforum.com/u/nobbz" rel="nofollow">NobbZ</a> meant by the “owning process should be responsible”? I can understand that if the owning process fails, the database will be empty when it’s restarted with my current ‘solution’. What function must I write in Custom.DB to achieve that?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="382566" data-batch-url="/posts/batch_likers">
                        1
                      </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/where-is-a-phoenix-apps-main-entry-point-function/74096/16">Post #15</a>
	                </div>
	            </div>
              <div id="likers-container-382566" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="382566"
                     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 #15"></div>
  </section>
</div>
    <div class="postbit" id="382567" data-post-id="382567">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>This piece of the Elixir docs talks about applications and their life cycle:</p>
<aside class="onebox allowlistedgeneric" data-onebox-src="https://elixir.hexdocs.pm/Application.html">
  <header class="source">

      <a href="https://elixir.hexdocs.pm/Application.html" target="_blank" rel="noopener nofollow ugc">elixir.hexdocs.pm</a>
  </header>

  <article class="onebox-body">
    

<h3><a href="https://elixir.hexdocs.pm/Application.html" target="_blank" rel="noopener nofollow ugc">Application — Elixir v1.20.2</a></h3>



  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>

<p>Worth knowing the underlying concept comes from Erlang, so to understand why things are the way they are you can also look into Erlang/OTP docs.</p>
<p>This explains the start callback:</p>
<aside class="onebox allowlistedgeneric" data-onebox-src="https://elixir.hexdocs.pm/Application.html">
  <header class="source">

      <a href="https://elixir.hexdocs.pm/Application.html" target="_blank" rel="noopener nofollow ugc">elixir.hexdocs.pm</a>
  </header>

  <article class="onebox-body">
    

<h3><a href="https://elixir.hexdocs.pm/Application.html" target="_blank" rel="noopener nofollow ugc">Application — Elixir v1.20.2</a></h3>



  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>

<p>For a custom Ecto.Repo, look at</p>
<aside class="onebox allowlistedgeneric" data-onebox-src="https://ecto.hexdocs.pm/Ecto.Repo.html">
  <header class="source">

      <a href="https://ecto.hexdocs.pm/Ecto.Repo.html" target="_blank" rel="noopener nofollow ugc">ecto.hexdocs.pm</a>
  </header>

  <article class="onebox-body">
    

<h3><a href="https://ecto.hexdocs.pm/Ecto.Repo.html" target="_blank" rel="noopener nofollow ugc">Ecto.Repo — Ecto v3.14.0</a></h3>



  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>

<p>This is the implementation of that callback when you  write <code>use Ecto.Repo</code> in your custom module:</p>
<p><a href="https://github.com/elixir-ecto/ecto/blob/v3.13.5/lib%2Fecto%2Frepo.ex#L281-L283" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/elixir-ecto/ecto/blob/v3.13.5/lib%2Fecto%2Frepo.ex#L281-L283</a></p>
<p>AFAIR there’s no “run this code on startup” hook out of the box in <code>Ecto.Repo</code>, but generally many possible entry points with different consequences as the other knowledgeable answers discuss.</p>
<p>I may be sending you off on the wrong direction as I don’t recall having to do it myself, but you can always wrap the Repo with a module you fully control and write the initialization code there, so that your supervision tree will be like <code>MyApp -&gt; MyApp.MyRepoInit -&gt; MyApp.Repo</code>.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="382567" data-batch-url="/posts/batch_likers">
                        8
                      </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/where-is-a-phoenix-apps-main-entry-point-function/74096/17">Post #16</a>
	                </div>
	            </div>
              <div id="likers-container-382567" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="382567"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-solved cat-solved" title="Marked as solution"></div>
  </section>
</div>
    <div class="postbit" id="382570" data-post-id="382570">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="ohmyohmyohmy" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ohmyohmyohmy/120/38321_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  ohmyohmyohmy
                    <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>Thanks for that. I think my problem is my mind is stuck in my old way of thinking of programming. Obviously, Elixir, Erlang, BEAM, OTP, is a completely different tool that my mind isn’t accustomed to yet.</p>
<p>So, now this is my current solution:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">defmodule Custom.DB do
  use Ecto.Repo,
    otp_app: :testing,
    adapter: Ecto.Adapters.SQLite3

  def create_tables do
    :testing
    |&gt; :code.priv_dir()
    |&gt; Path.join("repo/testing.sql")
    |&gt; File.read!()
    |&gt; query()
  end

  def show_tables do
    query("select * from sqlite_schema;")
  end
end


defmodule Custom.DB.Init do
  def start_link(opts \\ []) do
    result = Custom.DB.start_link(opts)
    Custom.DB.create_tables()
    result
  end

  def child_spec(opts) do
    %{
      id: __MODULE__,
      start: {__MODULE__, :start_link, [opts]},
      type: :worker,
      restart: :permanent,
      shutdown: 500
    }
  end

end
</code></pre>
<p>and in application.ex:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">    children = [
    ...

      {Custom.DB.Init, database: :memory, pool_size: 1}
      ...
    ]
</code></pre>
<p>That’s the best I’ve got. <img src="https://forum.elixirforum.com/images/emoji/apple/joy.png?v=15" title=":joy:" class="emoji" alt=":joy:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="382570" 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/where-is-a-phoenix-apps-main-entry-point-function/74096/18">Post #17</a>
	                </div>
	            </div>
              <div id="likers-container-382570" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="382570"
                     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 #17"></div>
  </section>
</div>
    <div class="postbit" id="382579" data-post-id="382579">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>It’s not that it’s <em>completely</em> different. The application start is pretty analogous to a <code>main()</code> function in another language. The difference is just that OTP has a bunch of abstractions layered on top of that for supervising processes because that’s what it’s designed for.</p>
<p>You could imagine inventing a similar abstraction in Python. Creating a <code>DBInit</code> class that has a <code>run()</code> method which creates the database. And then having some code like</p>
<pre data-code-wrap="python"><code class="lang-python">def main():
  children = [
    DBInit,
    StartServer,
  ]
  for child in children:
    child().run()
</code></pre>
<p>It’s the same idea except we have process isolation, which is very powerful.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="382579" data-batch-url="/posts/batch_likers">
                        3
                      </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/where-is-a-phoenix-apps-main-entry-point-function/74096/19">Post #18</a>
	                </div>
	            </div>
              <div id="likers-container-382579" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="382579"
                     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 #18"></div>
  </section>
</div>
    <div class="postbit" id="382582" data-post-id="382582">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="ohmyohmyohmy" data-post="18" data-topic="74096">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ohmyohmyohmy/48/38321_2.png" class="avatar"> ohmyohmyohmy:</div>
<blockquote>
<p>Elixir, Erlang, BEAM, OTP, is a completely different tool that my mind isn’t accustomed to yet</p>
</blockquote>
</aside>
<p>You demonstrate the curiosity to learn and figure out the new ways, you can do it!</p>
<p>If you’re into video content, there is a lot of videos on YouTube that can help you get a better sense of the mental model of Erlang and the BEAM, which trickle down to Elixir (and probably other BEAM languages as well).</p>
<p>In particular, I love the talks from Joe Armstrong, one of Erlang’s creators.</p>
<aside class="quote no-group" data-username="ohmyohmyohmy" data-post="1" data-topic="74096">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ohmyohmyohmy/48/38321_2.png" class="avatar"> ohmyohmyohmy:</div>
<blockquote>
<p>Usually when I write a program in another language like Python, there’s a clear-cut way to start something</p>
</blockquote>
</aside>
<aside class="quote no-group" data-username="garrison" data-post="19" data-topic="74096">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/g/3bc359/48.png" class="avatar"> garrison:</div>
<blockquote>
<p><code>def main():</code></p>
</blockquote>
</aside>
<p>Funny thing is that Python doesn’t have a specific entry point like C or Go (<code>func main</code>), but will interpret all files passed to the interpreter, so it’s up to you to do something like:</p>
<pre data-code-wrap="python"><code class="lang-python">if __name__ == "__main__":
    main() # or any other code here
</code></pre>
<p>Where <code>__main__</code> is a magic variable provided by the interpreter that will have the name of the current module when imported, or the string <code>__main__</code>for the top-level module (so the same code can observe different values for that variable depending how it was run)… but maybe that’s material for a Python forum <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="382582" data-batch-url="/posts/batch_likers">
                        4
                      </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/where-is-a-phoenix-apps-main-entry-point-function/74096/20">Post #19</a>
	                </div>
	            </div>
              <div id="likers-container-382582" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="382582"
                     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 #19"></div>
  </section>
</div>
    <div class="postbit" id="382584" data-post-id="382584">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>lol I had typed up the same thing about Python but I deleted it because I figured it was too much of a distraction from my point.</p>
<p>Of course we can have Python in Elixir too. Just create a <code>.exs</code> file! <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="382584" data-batch-url="/posts/batch_likers">
                        1
                      </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/where-is-a-phoenix-apps-main-entry-point-function/74096/21">Post #20</a>
	                </div>
	            </div>
              <div id="likers-container-382584" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="382584"
                     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 #20"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <a class="load-more-button" data-turbo-stream="true" href="/topics/74096/load_more?page=3">Load more posts (7 remaining)</a>
</div></template></turbo-stream>