Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update release.ex #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

taverngoal
Copy link

fix 'ExLoader.Release.get_path' on remote machine, not local

  • add param remote_node to function get_paths
  • File.ls! should be :rpc.call(remote_node, File, :ls!, [parent])
  • File.dir? should be :rpc.call(remote_node, File, :dir?, [p]

the test code start_node is iex --sname #{name} --cookie #{:erlang.get_cookie()} --detached. it means nodes on the same machine, file system is the same too. but, when the remote node on remote machine, master and slave node in different file system. function get_paths , should call File module in rpc way.

sorry for my poor English

fix 'ExLoader.Release.get_path' on remote  machine, not local

- add param `remote_node` to function `get_paths `
- `File.ls!` should be `:rpc.call(remote_node, File, :ls!, [parent])`
- `File.dir?` should be :rpc.call(remote_node, File, :dir?, [p])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant