[erlang-questions] Application can not be started

张国富 cleancode@REDACTED
Tue Oct 21 22:33:28 CEST 2014


Hello all,
I'm now following a Erlang rebar tutorial at http://www.metabrew.com/article/erlang-rebar-tutorial-generating-releases-upgrades, the test application can be started inside the erlang shell, like
$ erl -pa apps/ebin/ -boot start_sasl
1> application:start(dummy_proj). 
=PROGRESS REPORT==== 21-Oct-2014::21:16:13 ===
         application: dummy_proj
          started_at: nonode@REDACTED
ok
2> dummy_proj_server:poke().
{ok,1}
but it can not be started this way
$ erl -pa apps/ebin/ -boot start_sasl -s dummy_proj
Erlang R16B03 (erts-5.10.4) [source] [smp:4:4] [async-threads:10] [kernel-poll:false]
.... <skip> .....
=PROGRESS REPORT==== 21-Oct-2014::21:17:23 ===
         application: sasl
          started_at: nonode@REDACTED
{"init terminating in do_boot",{undef,[{dummy_proj,start,[],[]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()


It seems Erlang is trying to call dummy_proj:start(), but I can not understand why.
Anybody who ever encountered the same problem here? How can I make it work?


Thanks.


Best wishes


zhangguofu(Gary)



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20141022/19d0bf23/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dummy_proj.zip
Type: application/x-zip-compressed
Size: 72575 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20141022/19d0bf23/attachment.bin>


More information about the erlang-questions mailing list