Skip to content

Update release.ex#8

Open
taverngoal wants to merge 1 commit into
Tubitv:masterfrom
taverngoal:fix-remote-machine
Open

Update release.ex#8
taverngoal wants to merge 1 commit into
Tubitv:masterfrom
taverngoal:fix-remote-machine

Conversation

@taverngoal

Copy link
Copy Markdown

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