I guess then you would prefer something like:
sinan release
erl -boot _build/development/releases/0.1.0.0/project_name 
<add_more_command_line_arguments_here>

However, I enjoy having sinan act as more of a buffer between me and the 
command line.

You are correct that I am not starting all the applications in the 
proper order, nor the applications the dependent applications depend on, 
mea culpa.   I was just hoping to make the process easier.

Thanks.

Anders Nygren wrote:
> On Wed, Dec 10, 2008 at 1:45 AM, Michael Truog <[email protected]> wrote:
>   
>> I think some code might be useful in the documentation or perhaps
>> somehow inserted into sinan for simple testing of the project.  The code
>> allows a simple way to start the application and test it when using the
>> sinan shell command.  The code is below:
>>     
>
> This code does not work.
> 1, It does not start the dependent applications in the correct order.
> 2, It does not start applications that the dependent applications depend on.
>
> A better way is to create a boot script using
> systools:make_script(Project,[local])
> and the starting erlang with -boot Project
>
> /Anders
>
>   
>> %%% provide a way for start a sinan application when using the shell
>> interface
>> %%% (useful for development and testing)
>> %%%
>> %%% sinan --prefix=/path/to/erlang/ shell
>> %%% > bootstrap:start(main_application_name).
>> %%%
>> -module(bootstrap).
>> -export([start/1, stop/1]).
>>
>> start(Project) ->
>>  % extra process information
>>  application:start(sasl),
>>
>>  application:load(Project),
>>  {ok, Dependencies} = application:get_key(Project, applications),
>>  start_all(Dependencies, Project).
>>
>> stop(Project) ->
>>  application:stop(Project).
>>
>> start_all([H | T], Project) ->
>>  application:start(H),
>>  start_all(T, Project);
>> start_all([], Project) ->
>>  application:start(Project).
>>
>>     
>
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"erlware-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/erlware-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to