[erlang-questions] suggestions on how to start an erlang application from os shell script
Carl McDade
carlmcdade@REDACTED
Tue May 5 19:32:37 CEST 2009
Hi,
Have you read any of Joe's stuff on stand alone applications and how
to start them?
http://www.sics.se/~joe/sae.html
/Carl
On Tue, May 5, 2009 at 5:29 PM, Mark Geib <mark.geib@REDACTED> wrote:
> I have created an erlang application using the OTP structure.
>
> During development I have been doing
> erl -boot start_sasl ... then
> application:start(myapp).
>
> Now I am ready to package and deploy the app. We use debian systems here
> so I need to build a debian package to deploy from. The problem is I
> have not found a good way to start the app from the command line, i.e. a
> os shell script. I have tried creating a boot script, but this seems to
> require hard coded versions of the required apps, like kernel, sasl,
> etc. However we have various versions of debian in production with
> slightly different version of erlang, etc. installed. So I don't know
> the target environment.
>
> I could create a one line erlang program that does
> application:start(myapp), but this seems unnecessary.
>
> So, what is the standard method for starting a application from the
> command line.
>
> Thanks,
> Mark.
>
> --
> Principal Engineer
> Cheyenne Software Engineering
> mark.geib@REDACTED / 35-215
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
--
Carl McDade
Content Management Systems Consultant
www.hiveminds.co.uk
________________________
More information about the erlang-questions
mailing list