How to run a module in production

ematrix | emie | How To

Every emie-instance has a mapped path data which is shared on the host. So, you can write any code in data/your_code.ex and run it from an iex-session in production.

$ cd path/to/emie-instance
$ source .setup_env
$ docker-compose exec app iex -S mix 

iex> c "data/your_code.ex"
iex> YourModule.your_function()