From owner-freebsd-erlang@freebsd.org Sat Jun 1 00:16:56 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 9640A15A53B8 for ; Sat, 1 Jun 2019 00:16:56 +0000 (UTC) (envelope-from joe@getsomewhere.net) Received: from prak.gameowls.com (prak.gameowls.com [45.63.66.61]) by mx1.freebsd.org (Postfix) with ESMTP id 869E68A1A4 for ; Sat, 1 Jun 2019 00:16:55 +0000 (UTC) (envelope-from joe@getsomewhere.net) Received: from [IPv6:2601:243:1802:37d9:20dc:bd04:483c:25b6] (unknown [IPv6:2601:243:1802:37d9:20dc:bd04:483c:25b6]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by prak.gameowls.com (Postfix) with ESMTPSA id 261A0189DE; Fri, 31 May 2019 19:16:48 -0500 (CDT) Subject: Re: Deploying program on erlang runtime 21 To: Dave Cottlehuber Cc: freebsd-erlang@freebsd.org References: <4259DD93-00E2-4EB6-A1C3-DC4CBCEDD34C@getsomewhere.net> <36da7161-b304-4456-8027-d12eba2ac217@www.fastmail.com> <18BC9005-CDE4-43A8-8EC0-F4D7556E20EC@getsomewhere.net> <80e2288e-c7f8-f5f8-7551-65b2433b4201@gjunka.com> <86871724-5270-4765-886b-83775ca112f4@www.fastmail.com> From: Joe Love Message-ID: Date: Fri, 31 May 2019 19:16:48 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <86871724-5270-4765-886b-83775ca112f4@www.fastmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 869E68A1A4 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of joe@getsomewhere.net designates 45.63.66.61 as permitted sender) smtp.mailfrom=joe@getsomewhere.net X-Spamd-Result: default: False [-2.33 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.94)[-0.945,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[getsomewhere.net]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[mail.getsomewhere.net]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.17)[-0.170,0]; IP_SCORE(-0.01)[asn: 20473(0.03), country: US(-0.06)]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:20473, ipnet:45.63.64.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] 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: Sat, 01 Jun 2019 00:16:56 -0000 On 5/30/2019 6:12 PM, Dave Cottlehuber wrote: >> On 30/05/2019 20:48, Joe Love wrote: >>>> On May 30, 2019, at 7:50 AM, Dave Cottlehuber wrote: >>>> >>>> On Wed, 29 May 2019, at 20:31, Joe Love wrote: >>>>> Hi, >>>>> >>>>> I’ve 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. > Hi Joe > > https://github.com/skunkwerks/hello/ contains about 80% of a blog post in the > README, it's a minimal phoenix project with the build goop to produce a native > FreeBSD package. This, and pkg-repo behind a webserver allows you to > deploy only with pkg. > > I stripped out all the (IMO) messy bash scripts, and the rc.d script does the > minimum needed. I assume in most cases you'll want to use distributed > erlang and you either pass that in with erl_flags or in vm.args as appropriate. > > It's possible to add extra stuff in the manifest to start or stop your app > directly, but I prefer to do that via ansible. > > Let me know if anything's not clear. I hope it's useful for you, and PRs are > welcome for any improvements. > > A+ > Dave Thanks Dave.  I'll have to get some time to get through what you've got built here and understand it. -Joe