Before you read this be sure to look at:
And if you really have ton of time then learn ye some Erlang
Until you want to do some cool stuff like cross-compiled deploys.
Deploying your Elixir App onto ARM-Linux device with Exrm
In order to run an app on a system without
binaries you’d have to build cross compiled version of erlang specifically for that system (in my case that’s ARM-linux OSMC).
I failed to do build it manually on OSX. I had to install
with help of Erlang Embedded guys.
Just follow this post to install erlang on your Pi.
You will get erlang build installed in
you can copy that folder to convenient location
That folder is useful for all further deploys to any Pi
You still would need to tell Exrm about specific libs before running release. Libs and erts of Erlang built for Pi (
So these are the steps:
Generate a new Application
Check if it works locally
Replace /Volumes/Disk/erlang with a path to the erts extracted from the pi
Compile the app for prod and build a release
For details see Phoenix on Pi repo
Please dm me on twitter Andrew Shatnyy in case there’re questions. English is my second language and I am sure this guide could make no sense to a native speaker :)