[erlang-questions] use only parts of a release

Pablo Platt pablo.platt@REDACTED
Fri Apr 22 17:02:16 CEST 2011

I made some progress but still have several issues with rebar and I'm not able to unpack the release.
Is it possible to unpack the release manually? (the deb package will do it).
What's wrong with steps 11 and 12?


1. ./rebar generate (generate the first release).

2. generated the myserver/rel/myserver/releases/RELEASES file with:

release_handler:create_RELEASES(".", "./releases", "./releases/1/myserver.rel", []).
Why doesn't rebar create the RELEASES file?
3. created a deb package: myserver-1_amd64.deb and installed it on the target machine.
4. made a change to myserver:ver() so I'll have something to verify that the upgrade works.
5. created myserver.appup in the ebin dir which reflects the myserver module change.
6. renamed myserver release to myserver_first.
7. ./rebar generate
8. created a new RELEASES file (is it required?).
9. ./rebar generate-upgrade previous_release=myserver_first
I'm getting error:
ERROR: Systools aborted with: {modules,
Is this a bug in rebar?
I copied of erlydtl-0.6.1/ebintest to erlydtl-0.6.1/ebin and it fixed that error.

10 copy myserver_2.tar.gz to the target machine under the folder /usr/lib/myserver/releases
11. /usr/lib/myserver/bin/myserver attach
Why am I getting the enoent error?
12. trying to fix the error - copy manually the myserver_2.rel file to /usr/lib/myserver/releases

From: Pablo Platt <pablo.platt@REDACTED>
To: Per Melin <per.melin@REDACTED>
Cc: erlang-questions <erlang-questions@REDACTED>
Sent: Friday, April 22, 2011 4:15 PM
Subject: Re: [erlang-questions] use only parts of a release

The release does include ERTS but I'm excluding it when creating the deb package.
Is it possible to create a release without the ERTS?

From: Per Melin <per.melin@REDACTED>
To: Pablo Platt <pablo.platt@REDACTED>
Cc: erlang-questions <erlang-questions@REDACTED>
Sent: Friday, April 22, 2011 4:10 PM
Subject: Re: [erlang-questions] use only parts of a release

On Fri, Apr 22, 2011 at 2:02 PM, Pablo Platt <pablo.platt@REDACTED> wrote:
> init:get_argument(boot) gives me:
> {ok,[["/usr/lib/myserver/releases/1/myserver"]]}

Good. Please disregard the part where I said that the start script is
broken. I forgot that your release doesn't include the ERTS.

erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110422/ea720faf/attachment.htm>

More information about the erlang-questions mailing list