Requires Erlang and Elixir, as specified in the .tool-versions file. You can use asdf for that.
Building:
mix deps.get && mix compile
Starting for development with live reload:
iex -S mix phx.server
Then, you can visit the following links:
docker build -t example_system .
docker run --rm -p 4000:4000 -e NODE_NAME=node1 example_system
or as cluster
docker compose up
Building and starting locally (production-like release):
mix release --overwrite
NODE_NAME=node1 ./_build/prod/rel/example_system/bin/example_system start
Open the remote console:
NODE_NAME=node1 ./_build/prod/rel/example_system/bin/example_system remote
Hot upgrade with no downtime:
mix system.upgrade