How to set up an Ubuntu Linux machine for Phoenix Elixir deployment
January 2023
Step 1
Install Elixir and Nginx
sudo apt-get install elixir nginx erlang-dev
You can also install databases (Postgres or MySQL) and Redis if you need them
Step 2
Configure hex
and rebar
for deployment using mix
, the project manager for Elixir.
# hex
$ mix local.hex --force
* creating .mix/archives/hex-2.0.1
# rebar
$ mix local.rebar --force
* creating .mix/rebar
* creating .mix/rebar3