From owner-freebsd-erlang@freebsd.org Wed May 29 20:25:51 2019 Return-Path: Delivered-To: freebsd-erlang@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3245B15AC518 for ; Wed, 29 May 2019 20:25:51 +0000 (UTC) (envelope-from joe@getsomewhere.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 9DC11856F0 for ; Wed, 29 May 2019 20:25:50 +0000 (UTC) (envelope-from joe@getsomewhere.net) Received: by mailman.ysv.freebsd.org (Postfix) id 5AB3115AC517; Wed, 29 May 2019 20:25:50 +0000 (UTC) Delivered-To: erlang@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1CBE615AC516 for ; Wed, 29 May 2019 20:25:50 +0000 (UTC) (envelope-from joe@getsomewhere.net) Received: from prak.gameowls.com (prak.gameowls.com [IPv6:2001:19f0:5c00:950b:5400:ff:fe14:46b7]) by mx1.freebsd.org (Postfix) with ESMTP id 84829856EE for ; Wed, 29 May 2019 20:25:49 +0000 (UTC) (envelope-from joe@getsomewhere.net) Received: from [IPv6:2606:7d80:2001:8701:3cc6:8ec9:bcea:9550] (unknown [IPv6:2606:7d80:2001:8701:3cc6:8ec9:bcea:9550]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by prak.gameowls.com (Postfix) with ESMTPSA id 6614D18E84 for ; Wed, 29 May 2019 15:25:42 -0500 (CDT) From: Joe Love Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Deploying program on erlang runtime 21 Message-Id: <4259DD93-00E2-4EB6-A1C3-DC4CBCEDD34C@getsomewhere.net> Date: Wed, 29 May 2019 15:25:41 -0500 To: erlang@freebsd.org X-Mailer: Apple Mail (2.3445.102.3) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-erlang@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Support of Erlang-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 May 2019 20:25:51 -0000 Hi, I=E2=80=99ve been trying to wrap my head around creating my Elixir-based = projects on my client workstations (which are not freebsd) and deploying = them to a FreeBSD server using the erlang-runtime-21 package. I think I=E2=80=99m a bit lost somewhere on it, and am hoping to get = some guidance here. I=E2=80=99ve created my project on my mac. I=E2=80=99ve added = Distillery (per many suggestions & guides). If I understand everything = correctly, I can=E2=80=99t include ERTS, as that=E2=80=99s the part = which is compiled based on the host OS. Therefore, I modified my = Distillery config to not include ERTS in the production build, and then = ran `mix release --env=3Dprod`. I uploaded the resulting _build/dev/rel/myproject to the FreeBSD server = which has erlang-runtime-21 on it. I set my path to include /usr/local/lib/erlang21/bin, added ERTS_LIB_DIR = =3D /usr/local/lib/erlang21/erts-10.3 and tried to run it. Apparently I = have erts-10.1 on my machine and the server had erts-10.3, so it seems = that that also needs to match. So, given all of this, I remember being told that while the lang/erlang = port was older, that I could always use the runtime ports, and things = would work. Can someone fill me in on how they're supposed to work? It = seems like things are more intricate regarding running beam-vm-based = programs on a different machine than that you=E2=80=99re building it on. Thanks, -Joe=