[erlang-questions] suggestions on how to start an erlang application from os shell script
Tue May 5 18:59:23 CEST 2009
We use debian, and developed a system called erlrc for integrating erlang
with OS package management (e.g., apt).
On Tue, 5 May 2009, Mark Geib wrote:
> I have created an erlang application using the OTP structure.
> During development I have been doing
> erl -boot start_sasl ... then
> 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.
> Principal Engineer
> Cheyenne Software Engineering
> / 35-215
> erlang-questions mailing list
In an artificial world, only extremists live naturally.
-- Paul Graham
More information about the erlang-questions