Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 May 2019 23:12:56 +0000
From:      "Dave Cottlehuber" <dch@skunkwerks.at>
To:        "Joe Love" <joe@getsomewhere.net>
Cc:        freebsd-erlang@freebsd.org
Subject:   Re: Deploying program on erlang runtime 21
Message-ID:  <86871724-5270-4765-886b-83775ca112f4@www.fastmail.com>
In-Reply-To: <80e2288e-c7f8-f5f8-7551-65b2433b4201@gjunka.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
> On 30/05/2019 20:48, Joe Love wrote:
> >> On May 30, 2019, at 7:50 AM, Dave Cottlehuber <dch@skunkwerks.at> w=
rote:
> >>
> >> On Wed, 29 May 2019, at 20:31, Joe Love wrote:
> >>> 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 pac=
kage.

Hi Joe

https://github.com/skunkwerks/hello/ contains about 80% of a blog post i=
n 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 doe=
s 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 appro=
priate.

It's possible to add extra stuff in the manifest to start or stop your a=
pp
directly, but I prefer to do that via ansible.
=20
Let me know if anything's not clear. I hope it's useful for you, and PRs=
 are
welcome for any improvements.

A+
Dave



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86871724-5270-4765-886b-83775ca112f4>