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
?
There are two ways:
bin/foo start_iex
iex
(for this the application should have been started named.) Assuming the application was run as foo@192.168.1.42
, and local host is 192.168.1.10
, this would open a remote shell:
iex --name remote@192.168.1.10 \
--remsh foo@192.168.1.42 \
--cookie COOKIE
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.