Deployment process for Elixir / Phoenix apps a little bit different from Ruby with Ruby on Rails for example.
Notice: this tutorial assumes, that you familiar with Elixir and configuration / structure of Phoenix apps.
Let’s get started.
Run mix deps.get to fetch the dependencies.
Next step - .edeliver/config file:
Run init for Distillery:
Let’s build our release with verbose output for debug purposes:
If successfull, we can go ahead. Let’s deploy our release to our production server.
And the last step - let’s start our production.
After that, you need to configure Nginx (for example) and point your upstream directive to correct host and port.