Before you read this be sure to look at:
And if you really have a ton of time learn ye some Erlang
Deploying your Elixir App onto ARM-Linux device with Exrm
I had a Raspberry Pi 1 running OSMC on my local network for quite a while now and I trust I should be able to host my Phoenix application on that box as well. In Erlang land you need a release to run your app on a remote host. Elixir has Exrm lib for building releases for mix projects. Phoenix Docs describe deploy process thoroughly but it works for systems with Erlang pre-installed. You are on your own if you want to cross-compile your release from Intel to ARM architecture.
In essence, you must have a working elrang runtime environment to get your app working, then OpenSSL lib must be present to be able to deal with crypto.
After the installation run, you will get the erlang build installed in
/usr/lib/erlang/ next copy that folder to a convenient location
That folder can be used for all further deploys to most ARM architectures.
Then tell Exrm about specific libs before running release. Libs and erts of Erlang built for Pi (
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