aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Rascao <[email protected]>2016-08-23 21:38:10 +0100
committerLuis Rascao <[email protected]>2016-10-03 21:35:26 +0100
commitaec6d30b22a47162dec94224f8bbe49246e93882 (patch)
tree8f74f69c1b382f7d59f78d39fe813a605bc30c1a
parentcf68577c1499c64c7b154160fffe14cd57fbb6ec (diff)
downloadrelx-aec6d30b22a47162dec94224f8bbe49246e93882.tar.gz
relx-aec6d30b22a47162dec94224f8bbe49246e93882.tar.bz2
relx-aec6d30b22a47162dec94224f8bbe49246e93882.zip
Always ask release handler to update paths on relup
When performing a relup that involves starting a new application we need to inform release handler that the code paths need to be updated to account for the new apps. Otherwise the relup instruction application:start/2 will fail since it is unable to find the .app file.
-rw-r--r--priv/templates/install_upgrade_escript3
1 files changed, 2 insertions, 1 deletions
diff --git a/priv/templates/install_upgrade_escript b/priv/templates/install_upgrade_escript
index 0910c38..fe4e5e1 100644
--- a/priv/templates/install_upgrade_escript
+++ b/priv/templates/install_upgrade_escript
@@ -81,7 +81,8 @@ install_and_permafy(TargetNode, RelName, Vsn) ->
?INFO("ERROR: release_handler:check_install_release failed: ~p~n",[Reason]),
erlang:halt(3)
end,
- case rpc:call(TargetNode, release_handler, install_release, [Vsn], ?TIMEOUT) of
+ case rpc:call(TargetNode, release_handler, install_release,
+ [Vsn, [{update_paths, true}]], ?TIMEOUT) of
{ok, _, _} ->
?INFO("Installed Release: ~s~n", [Vsn]),
permafy(TargetNode, RelName, Vsn),