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


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="papakay" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/papakay/120/23516_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  papakay
                    <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 so much. I guess you run this script on the production 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="79024" 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/current-shell-error-with-edeliver/13745/22">Post #21</a>
	                </div>
	            </div>
              <div id="likers-container-79024" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="79024"
                     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 #21"></div>
  </section>
</div>
    <div class="postbit" id="79025" data-post-id="79025">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="papakay" data-post="22" data-topic="13745" data-full="true">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/papakay/48/23516_2.png" class="avatar"> papakay:</div>
<blockquote>
<p>Thanks so much. I guess you run this script on the production server?</p>
</blockquote>
</aside>
<p>Yep, you always want to run the build on either the production setup or on something that is absolutely identical.  The production VM for this is idle enough that I just build it straight on it.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="79025" 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/current-shell-error-with-edeliver/13745/23">Post #22</a>
	                </div>
	            </div>
              <div id="likers-container-79025" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="79025"
                     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 #22"></div>
  </section>
</div>
    <div class="postbit" id="79026" data-post-id="79026">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="papakay" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/papakay/120/23516_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  papakay
                    <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 immensely for this great information.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="79026" 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/current-shell-error-with-edeliver/13745/24">Post #23</a>
	                </div>
	            </div>
              <div id="likers-container-79026" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="79026"
                     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 #23"></div>
  </section>
</div>
    <div class="postbit" id="92313" data-post-id="92313">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>So I am following this thread to solve the same issue without success. I will appreciate your help in this matter.</p>
<h2><a name="p-92313-environment-1" class="anchor" href="#p-92313-environment-1" aria-label="Heading link" rel="nofollow"></a>Environment</h2>
<p>Elixir 1.6.6 (compiled with OTP 20)<br>
edeliver v1.4.5 | <a href="https://github.com/boldpoker/edeliver" class="inline-onebox" rel="noopener nofollow ugc">GitHub - edeliver/edeliver: Deployment for Elixir and Erlang · GitHub</a><br>
distillery 1.5.3<br>
OpenSuse Leap 15 (my laptop) with name: linux-6h0b<br>
Build Server: Ubuntu 16.04<br>
Production Server: Ubuntu 16.04</p>
<h2><a name="p-92313-the-problem-2" class="anchor" href="#p-92313-the-problem-2" aria-label="Heading link" rel="nofollow"></a>The problem</h2>
<pre><code>BUILDING RELEASE OF EPR APP ON BUILD HOST

-----&gt; Authorizing hosts
-----&gt; Ensuring hosts are ready to accept git pushes
ssh: connect to host linux-6h0b port 22: Connection refused

A remote command failed on:

  jalcerro@linux-6h0b

Output of the command is shown above and the command executed
on that host is printed below for debugging purposes:

FAILED with exit status 255:

    current_shell="$0" || :
    [ -z "$current_shell" ] &amp;&amp; current_shell="$SHELL"
    case "$current_shell" in
      (*bash*) echo 'bash is installed and the default shell' &amp;&gt; /dev/null ;;
      (*zsh*)  echo  'zsh is installed and the default shell' &amp;&gt; /dev/null ;;
      (*)
       echo
       echo "You are using an unsupported shell: '$current_shell'"
       echo "edeliver requires either bash or zsh to be installed"
       echo "and the default shell for the build user 'jalcerro'"
       echo "on your build host: 'linux-6h0b'."
       exit 1
       ;;
    esac
    set -e
    if [ ! -d /home/jalcerro/app_build ]
    then
      mkdir -p /home/jalcerro/app_build
      cd /home/jalcerro/app_build
      git init &amp;&gt; /dev/null
      git config receive.denyCurrentBranch ignore
    else
      cd /home/jalcerro/app_build
      git config receive.denyCurrentBranch ignore
    fi
</code></pre>
<h2><a name="p-92313-my-deliverconfig-file-3" class="anchor" href="#p-92313-my-deliverconfig-file-3" aria-label="Heading link" rel="nofollow"></a>My .deliver/config file</h2>
<pre><code>#!/usr/bin/env zsh

APP="epr"

BUILD_HOST="build-server.local"
BUILD_USER="jalcerro"
BUILD_AT="/home/jalcerro/app_build"

PRODUCTION_HOSTS="prod-app.local"
PRODUCTION_USER="support" 
DELIVER_TO="/home/support/epr" 

pre_erlang_get_and_update_deps() {
  local _prod_secret_path="/home/jalcerro/app_config/prod.secret.exs"
  if [ "$TARGET_MIX_ENV" = "prod" ]; then
    __sync_remote "
      ln -sfn '$_prod_secret_path' '$BUILD_AT/config/prod.secret.exs'
    "
  fi
}
</code></pre>
<h2><a name="p-92313-i-have-configured-4" class="anchor" href="#p-92313-i-have-configured-4" aria-label="Heading link" rel="nofollow"></a>I have configured</h2>
<ul>
<li>I am able to ssh into my build server without password</li>
<li>Configured .ssh/config file proppery</li>
<li>Used ssh-copy-id to add key to authorized-keys file</li>
<li>check my shell to by zsh in passwd</li>
</ul>
<h2><a name="p-92313-i-dont-understand-5" class="anchor" href="#p-92313-i-dont-understand-5" aria-label="Heading link" rel="nofollow"></a>I don’t understand</h2>
<ul>
<li>Why is edeliver trying to use my computer name “linux-6h0b” instead of the the build_host “build-server.local”?</li>
</ul>
<p>Thanks for your help.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="92313" 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/current-shell-error-with-edeliver/13745/25">Post #24</a>
	                </div>
	            </div>
              <div id="likers-container-92313" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="92313"
                     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>