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


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="ppff" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  ppff
                    <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>Yep that’s the solution I was going to fall back on afterwards.<br>
I just don’t see why it wouldn’t work with the alias.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="159381" 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/run-phx-server-after-seeds-with-mix-alias/28406/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-159381" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="159381"
                     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="159423" data-post-id="159423">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Can you show the last few lines of your <code>seeds.exs</code>?</p>
<p>Also, did you try to access your phoenix app after the shell seemed to hang?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="159423" 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/run-phx-server-after-seeds-with-mix-alias/28406/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-159423" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="159423"
                     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="159480" data-post-id="159480">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="axelson" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/axelson/120/26351_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  axelson
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Scenic Core Team</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Can you show the output you get when you run <code>mix seededserver</code>? I tried on an app I have and <code>phx.server</code> should work fine as part of an alias. Do you get a message like: <code>[info] Running MyAppWeb.Endpoint with cowboy 2.7.0 at 0.0.0.0:4000 (http)</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="159480" 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/run-phx-server-after-seeds-with-mix-alias/28406/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-159480" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="159480"
                     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="159509" data-post-id="159509">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="ppff" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  ppff
                    <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>Alright so here is a precise example with the output I get.</p>
<p>I stripped down the seeds file because it’s quite big (it doesn’t change anything about the bug anyway):</p>
<pre data-code-wrap="elixir"><code class="lang-elixir"># Script for populating the database. You can run it as:
#
#     mix run priv/customer_repo/seeds.exs
#

account_admin_email = "admin@client.com"
Client.Factory.insert(:account, email: account_admin_email, role: "admin")
</code></pre>
<p>Here is the output I get (a little bit reduced):</p>
<pre><code class="lang-plaintext">graph_api       | Generated client app
graph_api       | The database for Client.CustomerRepo has been dropped
graph_api       | The database for Client.CustomerRepo has been created
graph_api       | [info] == Running 20190529062333 Client.CustomerRepo.Migrations.CreateAccounts.change/0 forward
graph_api       | [info] create table accounts
graph_api       | [info] create index accounts_email_index
graph_api       | [info] == Migrated 20190529062333 in 0.0s
(more migrations...)
graph_api       | [error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvoicilas/inotify-tools/wiki for more information about how to install it. If it's already installed but not be found, appoint executable file with `config.exs` or `FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE` env.
graph_api       | [warn] Could not start Phoenix live-reload because we cannot listen to the file system.
graph_api       | You don't need to worry! This is an optional feature used during development to
graph_api       | refresh your browser when you save files and it does not affect production.
graph_api       | 
graph_api       | [info] [MQTT] Connection has been established
graph_api       | [info] [MQTT] Subscribed to echo
graph_api       | [debug] QUERY OK db=4.9ms queue=1.5ms
graph_api       | INSERT INTO "accounts" ("email","name","password_hash","role","inserted_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6) RETURNING "id" ["admin@client.com", "Name #0", "$2b$12$ROLGMyua5K5OYuL0hiSEQuNkM.bgWfEBbBcXdYjq8Z2aPZ7Hyuqbm", "admin", ~N[2020-01-21 08:28:43], ~N[2020-01-21 08:28:43]]
graph_api       | [debug] Tzdata polling for update.
graph_api       | [info] tzdata release in place is from a file last modified Tue, 26 Mar 2019 05:40:14 GMT. Release file on server was last modified Wed, 11 Sep 2019 19:35:17 GMT.
graph_api       | [debug] Tzdata downloading new data from https://data.iana.org/time-zones/tzdata-latest.tar.gz
graph_api       | [debug] Tzdata data downloaded. Release version 2019c.
graph_api       | [info] Tzdata has updated the release from 2019a to 2019c
graph_api       | [debug] Tzdata deleting ETS table for version 2019a
graph_api       | [debug] Tzdata deleting ETS table file for version 2019a
</code></pre>
<p>And I can’t even open a TCP connection with the server.</p>
<p>Now if I set up my alias like this:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">seededserver: ["ecto.drop", "ecto.create", "ecto.migrate", "phx.server"]
</code></pre>
<p>What I get is:</p>
<pre><code class="lang-plaintext">graph_api       | Generated client app
graph_api       | The database for Client.CustomerRepo has been dropped
graph_api       | The database for Client.CustomerRepo has been created
graph_api       | [info] == Running 20190529062333 Client.CustomerRepo.Migrations.CreateAccounts.change/0 forward
graph_api       | [info] create table accounts
graph_api       | [info] create index accounts_email_index
graph_api       | [info] == Migrated 20190529062333 in 0.0s
(more migrations...)
graph_api       | [error] `inotify-tools` is needed to run `file_system` for your system, check https://github.com/rvgraph_api       | [warn] Could not start Phoenix live-reload because we cannot listen to the file system.
graph_api       | You don't need to worry! This is an optional feature used during development to
graph_api       | refresh your browser when you save files and it does not affect production.
graph_api       | 
graph_api       | [info] Running ClientWeb.Endpoint with cowboy 2.6.3 at 0.0.0.0:4000 (http)
graph_api       | [info] Access ClientWeb.Endpoint at http://localhost:4000
graph_api       | [info] [MQTT] Connection has been established
graph_api       | [info] [MQTT] Subscribed to echo
graph_api       | 
graph_api       | webpack is watching the files…
graph_api       | 
graph_api       | [debug] Tzdata polling for update.
graph_api       | [info] tzdata release in place is from a file last modified Tue, 26 Mar 2019 05:40:14 GMT. Release file on server was last modified Wed, 11 Sep 2019 19:35:17 GMT.
graph_api       | [debug] Tzdata downloading new data from https://data.iana.org/time-zones/tzdata-latest.tar.gz
graph_api       | [debug] Tzdata data downloaded. Release version 2019c.
graph_api       | [info] Tzdata has updated the release from 2019a to 2019c
graph_api       | [debug] Tzdata deleting ETS table for version 2019a
graph_api       | [debug] Tzdata deleting ETS table file for version 2019a
graph_api       | Hash: 2d405c93b037ae7d7107
graph_api       | Version: webpack 4.41.5
graph_api       | Time: 8763ms
graph_api       | Built at: 01/21/2020 8:39:14 AM
graph_api       |                                             Asset       Size    Chunks             Chunk Names
graph_api       |                                  ../css/admin.css    543 KiB     admin  [emitted]  admin
graph_api       |                                    ../favicon.ico   1.23 KiB            [emitted]  
graph_api       |              ../fonts/admin/Simple-Line-Icons.eot     53 KiB            [emitted]  
graph_api       |              ../fonts/admin/Simple-Line-Icons.ttf   52.8 KiB            [emitted]  
graph_api       |              ../fonts/admin/Simple-Line-Icons.txt    233 KiB            [emitted]  
graph_api       |             ../fonts/admin/Simple-Line-Icons.woff   79.4 KiB            [emitted]  
graph_api       |            ../fonts/admin/Simple-Line-Icons.woff2   29.4 KiB            [emitted]  
graph_api       |                               ../images/.DS_Store      6 KiB            [emitted]  
graph_api       |                     ../images/auth-background.jpg   1.01 MiB            [emitted]  
graph_api       |                     ../images/auth-background.png    416 KiB            [emitted]  
graph_api       |                  ../images/avatar-placeholder.jpg   36.7 KiB            [emitted]  
graph_api       |                     ../images/home-background.jpg   68.6 KiB            [emitted]  
graph_api       |                                ../images/logo.png   2.86 KiB            [emitted]  
graph_api       |                                ../images/logo.svg   7.85 KiB            [emitted]  
graph_api       |           ../images/logo_for_white_background.png   7.42 KiB            [emitted]  
graph_api       |                             ../images/phoenix.png   13.6 KiB            [emitted]  
graph_api       |                                     ../robots.txt  202 bytes            [emitted]  
graph_api       |                                          32px.png   5.53 KiB            [emitted]  
graph_api       |                                          40px.png   2.17 KiB            [emitted]  
graph_api       |                                          admin.js    2.9 MiB     admin  [emitted]  admin
graph_api       | Entrypoint admin = ../css/admin.css admin.js
graph_api       | [0] multi ./js/admin.js 28 bytes {admin} [built]
graph_api       | [../deps/phoenix_html/priv/static/phoenix_html.js] 2.18 KiB {admin} [built]
graph_api       | [./css/admin.scss] 39 bytes {admin} [built]
graph_api       | [./js/admin.js] 502 bytes {admin} [built]
graph_api       | [./js/admin/components sync recursive ^(.*\.(js$))[^.]*$] ./js/admin/components sync ^(.*\.(js$))[^.]*$ 227 bytes {admin} [built]
graph_api       | [./js/common/components sync recursive ^(.*\.(js$))[^.]*$] ./js/common/components sync ^(.*\.(js$))[^.]*$ 237 bytes {admin}  [built]
graph_api       | [./js/common/theme/theme.js] 23.8 KiB {admin}  [built]
graph_api       | [./js/common/utils/webpack.js] 558 bytes {admin}  [built]
graph_api       | [./js/common/vendor sync recursive ^(.*\.(js$))[^.]*$] ./js/common/vendor sync ^(.*\.(js$))[^.]*$ 200 bytes {admin}  [built]
graph_api       | [./js/common/vendor/index.js] 255 bytes {admin}  [built]
graph_api       | [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {admin}  [built]
graph_api       |     + 409 hidden modules
graph_api       | Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js!node_modules/postcss-loader/lib/index.js??ref--5-2!node_modules/sass-loader/dist/cjs.js??ref--5-3!css/admin.scss:
graph_api       |     Entrypoint mini-css-extract-plugin = *
graph_api       |     [./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/lib/index.js?!./node_modules/sass-loader/dist/cjs.js?!./css/admin.scss] ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/lib??ref--5-2!./node_modules/sass-loader/dist/cjs.js??ref--5-3!./css/admin.scss 519 KiB {mini-css-extract-plugin} [built]
graph_api       |         + 4 hidden modules
</code></pre>
<p>axelson, does your seeds script return anything specific at the end?<br>
Also, I run elixir 1.8.2 but tried with 1.9.4 and couldn’t witness any change.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="159509" 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/run-phx-server-after-seeds-with-mix-alias/28406/15">Post #14</a>
	                </div>
	            </div>
              <div id="likers-container-159509" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="159509"
                     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="159539" data-post-id="159539">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>So, have you tried installing <code>inotify-tools</code> as well, just in case?</p>
<p>The second output looks fine; you still can’t connect to the server?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="159539" 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/run-phx-server-after-seeds-with-mix-alias/28406/16">Post #15</a>
	                </div>
	            </div>
              <div id="likers-container-159539" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="159539"
                     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="159545" data-post-id="159545">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="ppff" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  ppff
                    <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>Yeah I’ve added <code>inotify-tools</code> to my dockerfile but it didn’t change anything.<br>
Of course the second output looks fine, I removed the seeds <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"> I just wanted to demonstrate that the problem comes from the call to the seeds.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="159545" 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/run-phx-server-after-seeds-with-mix-alias/28406/17">Post #16</a>
	                </div>
	            </div>
              <div id="likers-container-159545" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="159545"
                     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>