[erlang-questions] Querying release version

Anders Nygren <>
Wed Jul 4 18:37:42 CEST 2012


Also useful is init:script_id()

/Anders

On Wed, Jul 4, 2012 at 10:36 AM, Vasily Sulatskov <> wrote:
> I suppose I am not following all instructions for deploying a release
> correctly because
>
> release_handler:which_releases() lists only standard releases like OTP
>
> My release is not included in that list, but this function seems to be
> doing exactly what I need.
>
> On Wed, Jul 4, 2012 at 3:04 PM, André Graf <> wrote:
>> release_handler:which_releases()
>> will do it.
>>
>> On 4 July 2012 14:24, Gustav Simonsson
>> <> wrote:
>>>
>>> http://www.erlang.org/doc/man/reltool.html#get_rel-2
>>> http://www.erlang.org/doc/apps/reltool/reltool_examples.html#id61354
>>>
>>> // Gustav
>>>
>>> Sent from my PC
>>>
>>> ----- Original Message -----
>>>> From: "Vasily Sulatskov" <>
>>>> To: 
>>>> Sent: Wednesday, 4 July, 2012 2:12:57 PM
>>>> Subject: [erlang-questions] Querying release version
>>>>
>>>> Hi All,
>>>>
>>>> I am using a release system for deployment. That means I have a
>>>> properly generated .rel file with a meaningful release version
>>>> string.
>>>>
>>>> Something like this:
>>>>
>>>> {release,
>>>>  {"myproject", "1.0.18-5256c9d80442"},
>>>>  ...
>>>>  ...
>>>>
>>>>
>>>> Is there a way to read that release version string during system's
>>>> runtime?
>>>>
>>>> --
>>>> Best regards,
>>>> Vasily Sulatskov
>>>> _______________________________________________
>>>> erlang-questions mailing list
>>>> 
>>>> http://erlang.org/mailman/listinfo/erlang-questions
>>>>
>>> _______________________________________________
>>> erlang-questions mailing list
>>> 
>>> http://erlang.org/mailman/listinfo/erlang-questions
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> http://erlang.org/mailman/listinfo/erlang-questions
>
>
>
> --
> Best regards,
> Vasily Sulatskov
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list