<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span>I've removed some of the apps because I didn't understand why the release includes apps such as mnesia and wx although I don't use them.</span></div><div><span>To prevent issues I'm including all the lib folder now.</span></div><div><br><span></span>init:get_argument(root) when running the generated release gives me {ok,[["/home/user/myserver/rel/myserver"]]}</div><div>after installing the deb package on the second machine I'm getting: {ok,[["/usr/local/lib/erlang"]]}</div><div><span><br></span></div><div><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Per Melin <per.melin@gmail.com><br><b><span style="font-weight:
bold;">To:</span></b> Pablo Platt <pablo.platt@yahoo.com><br><b><span style="font-weight: bold;">Cc:</span></b> erlang-questions <erlang-questions@erlang.org><br><b><span style="font-weight: bold;">Sent:</span></b> Friday, April 22, 2011 1:32 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [erlang-questions] use only parts of a release<br></font><br>On Thu, Apr 21, 2011 at 9:42 PM, Pablo Platt <<a ymailto="mailto:pablo.platt@yahoo.com" href="mailto:pablo.platt@yahoo.com">pablo.platt@yahoo.com</a>> wrote:<br>> Is it possible to copy only parts of a release and use it on another machine<br>> with an erlang installation<br>> but still be able to use hot code upgrades?<br><br>Included in the release is a .boot-file. It loads all the modules in<br>the release and starts your applications. If you don't copy all the<br>modules I would assume the boot script will crash. Even if that<br>doesn't happen I can think of
serveral problems you will have along<br>the way, like how to make a release update script (relup) for your<br>partial release.<br><br>> I'm able to install and run myapp but release_handler:which_releases() show<br>> the info of the default erlang runtime instead of my release.<br><br>release_handler reads the file releases/RELEASES.<br><br>See <a href="http://www.erlang.org/doc/man/release_handler.html#create_RELEASES-4" target="_blank">http://www.erlang.org/doc/man/release_handler.html#create_RELEASES-4</a><br><br>But I don't think you should see the default Erlang release either<br>way. Does init:get_argument(root) give your release directory or your<br>standard Erlang installation?<br><br><br></div></div></div></body></html>