<div dir="ltr">For a production setup absolute the best to have a CI do the "heavy lifting"</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 18, 2014 at 6:32 PM, Tristan Sloughter <span dir="ltr"><<a href="mailto:t@crashfast.com" target="_blank">t@crashfast.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>




<div><div>Yea, we were doing the same at Heroku. A docker image that built the release and uploaded to S3 so we could deploy.<br></div>
<div> </div>
<div>It is a decent flow, but now I have just travis-ci doing the build, after tests pass, and uploading to S3. Which works nicely.<br></div>
<div> </div>
<div>I intend to document different deployment and upgrade strategies on rebar3 and relx websites eventually.<br></div>
<div> </div>
<div><div>--<br></div>
<div>Tristan Sloughter<br></div>
<div><a href="mailto:t@crashfast.com" target="_blank">t@crashfast.com</a><br></div>
<div> </div>
</div><div><div class="h5">
<div> </div>
<div> </div>
<div>On Thu, Dec 18, 2014, at 11:29 AM, Mark Nijhof wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div>Maybe a bit more cumbersome then changing a parameter (perhaps more guaranteed success), but I used to use a docker image to create a release for Ubuntu on MacOS so the platform is the same. Now I run Ubuntu on my machine so I don't need it anymore, but it was useful.<br></div>
<div> </div>
<div>Here is a repo: <a href="https://github.com/MarkNijhof/erlang_docker" target="_blank">https://github.com/MarkNijhof/erlang_docker</a><br></div>
<div> </div>
<div>-Mark<br></div>
</div>
<div><div> </div>
<div><div>On Thu, Dec 18, 2014 at 6:14 PM, Tristan Sloughter <span dir="ltr"><<a href="mailto:t@crashfast.com" target="_blank">t@crashfast.com</a>></span> wrote:<br></div>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><u></u><br></div>
<div><div><div>You must also set: <br></div>
<div> </div>
<div>{system_libs, false}.<br></div>
<div> </div>
<div>I've been undecided on making a single config variable that says to not include erts or system libs.<br></div>
<div> </div>
<div>Or you can set it to include another erts, which could be compiled for the platform you are deploying to:<br></div>
<div> </div>
<div>{include_erts, "/path/to/erts"}.<br></div>
</div>
<div> </div>
<div>I'm working on documentation as well. Currently it is within the rebar3 project, <a href="http://www.rebar3.org/v1.0/docs/releases" target="_blank">http://www.rebar3.org/v1.0/docs/releases</a>, but is the same for using relx on its own or with <a href="http://erlang.mk" target="_blank">erlang.mk</a> (except that you have to have a relx.config and can't use profiles). But I'll be creating a relx only set of docs similar to these.<br></div>
<div> </div>
<div>Tristan<br></div>
<div><div><div> </div>
<div>On Thu, Dec 18, 2014, at 11:09 AM, Max Lapshin wrote:<br></div>
</div>
</div>
<blockquote type="cite"><div><div><div dir="ltr"><div> </div>
<div>I've made simple project with <a href="http://erlang.mk" target="_blank">erlang.mk</a> and relx.config:<br></div>
<div> </div>
<div><div>{release, {peeklio, "0.1"},<br></div>
<div> [peeklio]}.<br></div>
<div> </div>
<div>{extended_start_script, true}.<br></div>
<div> </div>
<div>{include_erts, false}.<br></div>
</div>
<div> </div>
<div> </div>
<div>I compile it under MacOS and copy _rel/... to linux. It doesn't work because<br></div>
<div>crypto library is copied with MacOS .so<br></div>
<div> </div>
<div>How should I force relx to make some output that will use erlang from system?<br></div>
<div> </div>
</div>
</div>
</div>
<div><u>_______________________________________________</u><br></div>
<div>erlang-questions mailing list<br></div>
<div><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br></div>
<div><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br></div>
</blockquote><div> </div>
</div>
<div> </div>
<div>_______________________________________________<br></div>
<div>
erlang-questions mailing list<br></div>
<div> <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br></div>
<div> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br></div>
<div> </div>
</blockquote></div>
<div> </div>
<div> </div>
<div>-- <br></div>
<div><div dir="ltr"><div>Mark Nijhof<br></div>
<div><div>t:   <a href="https://twitter.com/MarkNijhof" target="_blank">@MarkNijhof</a><br></div>
<div>s:  marknijhof<br></div>
</div>
<div> </div>
</div>
</div>
</div>
</blockquote><div> </div>
</div></div></div>

</blockquote></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Mark Nijhof<br><div><div>t:   <a href="https://twitter.com/MarkNijhof" target="_blank">@MarkNijhof</a><br>s:  marknijhof</div></div><div><br></div></div></div>
</div>