I’ve recently written a small website based on Phoenix and Amnesia. Amnesia is an Elixir wrapper around the built-in Mnesia database.

Specifying the mnesia dir from the the shell can be done easily this way:

elixir --erl '-mnesia dir "path/to/db"' -S mix phoenix.start