Running a module function from outside the VM

I have an elixir app released and deployed. I was wondering how is it possible to run some function in the running VM from the shell.

I mean can do bin/myapp remote_console and run the function manually but I’d like to do this in a non interactive way.

1 Like

You can use bin/myapp rpc MyModule my_func to trigger that function. It will run inside the process which is already running.

Thanks a lot !