How to run mix commands in a release (elixir / exrm)?

Work on an application created using Elixir / mix.

We have a bunch of utility functions (i.e.: seed / clear Mnesia db) that we run as elixir mix foo.

Once the release is built (with mix + exrm) and deployed to the target machine (where we do not expect a complete assembly chain or full source), is there a practical way to access these commands?

+4
source share
1 answer

See https://github.com/bitwalker/exrm/issues/67#issuecomment-183457937

Now that # 286 is fixed, I would recommend the following approach we are doing:

escript, , ( exrm: https://gist.github.com/MSch/9cfc185e24e2f3509650) :

rel/pssync/bin/pssync escript bin/release_tasks.escript , , ..

/, () , mix , release_tasks.escript , . , OTP.

exrm , rel/pssync/bin/pssyc, .

+2
source

All Articles