Thanks, actually I already saw that documentation and knew about application:start(). I was looking for a simpler way to do that, because spawning a shell and typing that everytime is rather tedious.<div><br></div><div>Also, my application -- as I would guess most erlang apps -- is a server, so having to spawn a shell is not very practical as I need to logout after I started the application.</div>
<div><br></div><div>After some extensive search, I found that I could start my app with :</div><div>erl -pa _build/development/apps/foo-0.1.0/ebin/ -boot _build/development/releases/<a href="http://0.1.0.0/testapp">0.1.0.0/testapp</a></div>
<div>It seems weird to me that sinan does not provide a quick command such as "sinan run" to start the app. Moreover I couldn't find this command (erl -pa ... -boot ...) in any tutorial I read. My assumption was that this was a really basic task most people would need. Am I wrong in guessing that?</div>
<div><br></div><div><br></div><div>Besides, sinan build still spits this cryptic message in my face on my development machine (Mac OS 10.5.6). I couldn't find anything interesting on google. I was able to get sinan to work on Ubuntu, but I'd much rather have it on my main OS.</div>
<div><br><div><br><div class="gmail_quote">On Fri, Feb 6, 2009 at 3:17 PM, Hynek Vychodil <span dir="ltr"><<a href="mailto:vychodil.hynek@gmail.com">vychodil.hynek@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
May be this should be helpful:<br><a href="http://www.erlang.org/doc/design_principles/part_frame.html" target="_blank">http://www.erlang.org/doc/design_principles/part_frame.html</a><br>Starting and Stopping Applications: <a href="http://www.erlang.org/doc/design_principles/applications.html#7.7" target="_blank">http://www.erlang.org/doc/design_principles/applications.html#7.7</a><br>
<br><div class="gmail_quote">2009/2/6 Thomas Brian <span dir="ltr"><<a href="mailto:taum.xd@gmail.com" target="_blank">taum.xd@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<div><div></div><div class="Wj3C7c">
Hi,<div><br></div><div>I'm trying to get a little bit more familiar with Erlang, and so far have only done the very basics: playing with the shell, writing a basic network server with gen_tcp and gen_server, etc.</div>
<div><br></div><div>I am now interested in Sinan to help me build a bigger app. I started with sinan gen which builds what looks like a sensible template to me. But sinan build fails to compile anything :</div><div><br></div>
<div><div>$ sinan build</div><div>[build] start</div><div>[build] Building /Users/Taum/Documents/Erlang/testapp/lib/foo/src/foo_sup.erl</div><div>[build] /Users/Taum/Documents/Erlang/testapp/lib/foo/src/foo_sup.erl:none:error:internal error in beam_asm;</div>
<div>crash reason: {{badmatch,{error,enoent}},</div><div> [{filename,absname,1},</div><div> {compile,beam_asm,1},</div><div> {compile,'-internal_comp/4-anonymous-1-',2},</div>
<div> {compile,fold_comp,3},</div><div> {compile,internal_comp,4},</div><div> {compile,internal,3}]}</div><div><br></div><div><br></div><div>On a side note, I'm also having a very hard time finding basic documentation about how to manage an app in Erlang/OTP: how to get started, run it, etc. Are there any good ressources out there I might have overlooked ?</div>
<div><br></div><div>Cheers,</div><div>Thomas</div></div>
<br></div></div>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br>--Hynek (Pichi) Vychodil<br>
<br>Analyze your data in minutes. Share your insights instantly. Thrill your boss. Be a data hero!<br>Try Good Data now for free: <a href="http://www.gooddata.com" target="_blank">www.gooddata.com</a><br>
</font></blockquote></div><br></div></div>