Rudziankoŭ
Rudziankoŭ

Reputation: 11251

iex: run compiled elixir binary in iex console

I have binary file compiled using mix release: bin/app.

How can I run it using iex so that I will be attached to process console and will be able to call functions from bin/app?

Upvotes: 2

Views: 402

Answers (1)

Aleksei Matiushkin
Aleksei Matiushkin

Reputation: 121000

There are two ways:

  • bin/foo start_iex
  • connect to the running remote from iex (for this the application should have been started named.)

Assuming the application was run as [email protected], and local host is 192.168.1.10, this would open a remote shell:

iex --name [email protected] \
    --remsh [email protected] \
    --cookie COOKIE

Upvotes: 3

Related Questions