[erlang-questions] Querying release version

Anders Nygren anders.nygren@REDACTED
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 <vasily@REDACTED> 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 <andre@REDACTED> wrote:
>> release_handler:which_releases()
>> will do it.
>>
>> On 4 July 2012 14:24, Gustav Simonsson
>> <gustav.simonsson@REDACTED> 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" <vasily@REDACTED>
>>>> To: erlang-questions@REDACTED
>>>> 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
>>>> erlang-questions@REDACTED
>>>> http://erlang.org/mailman/listinfo/erlang-questions
>>>>
>>> _______________________________________________
>>> erlang-questions mailing list
>>> erlang-questions@REDACTED
>>> http://erlang.org/mailman/listinfo/erlang-questions
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>
>
>
> --
> Best regards,
> Vasily Sulatskov
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list