Comments on: An Introduction to Releases with Erlybank http://spawnlink.com/articles/an-introduction-to-releases-with-erlybank/ Linking You to Erlang Sun, 22 May 2011 00:00:20 +0000 http://wordpress.org/?v=2.6.1 By: How to Create an Erlang First Target System « streamhacker.com http://spawnlink.com/articles/an-introduction-to-releases-with-erlybank/#comment-9377 How to Create an Erlang First Target System « streamhacker.com Thu, 02 Jul 2009 15:20:53 +0000 http://spawnlink.com/?p=132#comment-9377 [...] Exit the console. You should find FIRST-1.0.tar.gz in your current directory. Ideally, this would be the last step, but more likely, you’ll need to do the customizations covered below. Unpack the tarball into your target directory and cd into it. For a different take on these first steps, check out An Introduction to Releases with Erlybank. [...] [...] Exit the console. You should find FIRST-1.0.tar.gz in your current directory. Ideally, this would be the last step, but more likely, you’ll need to do the customizations covered below. Unpack the tarball into your target directory and cd into it. For a different take on these first steps, check out An Introduction to Releases with Erlybank. [...]

]]>
By: Wakhanu Abiud http://spawnlink.com/articles/an-introduction-to-releases-with-erlybank/#comment-8425 Wakhanu Abiud Tue, 09 Jun 2009 07:36:29 +0000 http://spawnlink.com/?p=132#comment-8425 Hi Mitchell, You are a great man. Your tutorials on OTP behaviours and release handling have really broadened my understanding of the erlang language. Now there is one thing I would like to know. I have followed your step by step explanation of how to create an application up to installing a release and things have worked out pretty well. However, in my "Myapplication.erl" file I have specified something like: start(_Type, _Args) -> erlangsmppgw:start_link(). So when I first ran the function : erlangsmppgw_app:start(normal,[]), I was so pleased that this automatically invoked my application to run as expected .i.e the server process "erlangsmppgw" was spawned and called the rest of the program. Next, I package the application into a release and finally test as instructed by typing: export ROOT=/usr/local/lib/erlang erl -boot $ROOT/releases/1/start The end result is that myapplication "erlangsmppgw_app" is actually started" as shown by : =PROGRESS REPORT==== 9-Jun-2009::10:15:35 === application: erlangsmppgw_app started_at: nonode@nohost - However, I dont see an invocation to the function "erlangsmppgw:start_link()" which I earlier on specified in the "erlangsmppgw_app.erl". In other words "erlangsmppgw:start_link()" should start my server, but It doesnt. So how do I go around this? Any assistance accorded will be highly appreciated Thanks Hi Mitchell,

You are a great man. Your tutorials on OTP behaviours and release handling have really broadened my understanding of the erlang language.

Now there is one thing I would like to know. I have followed your step by step explanation of how to create an application up to installing a release and things have worked out pretty well. However, in my “Myapplication.erl” file I have specified something like:

start(_Type, _Args) ->
erlangsmppgw:start_link().
So when I first ran the function : erlangsmppgw_app:start(normal,[]), I was so pleased that this automatically invoked my application to run as expected .i.e the server process “erlangsmppgw” was spawned and called the rest of the program.

Next, I package the application into a release and finally test as instructed by typing:
export ROOT=/usr/local/lib/erlang
erl -boot $ROOT/releases/1/start

The end result is that myapplication “erlangsmppgw_app” is actually started” as shown
by :
=PROGRESS REPORT==== 9-Jun-2009::10:15:35 ===
application: erlangsmppgw_app
started_at: nonode@nohost

- However, I dont see an invocation to the function “erlangsmppgw:start_link()” which I earlier on specified in the “erlangsmppgw_app.erl”. In other words “erlangsmppgw:start_link()” should start my server, but It doesnt. So how do I go around this?

Any assistance accorded will be highly appreciated

Thanks

]]>
By: Dan Milstein http://spawnlink.com/articles/an-introduction-to-releases-with-erlybank/#comment-1592 Dan Milstein Fri, 16 Jan 2009 06:01:14 +0000 http://spawnlink.com/?p=132#comment-1592 First off, have to join with everyone in saying just how extremely useful this series of articles is. Second off, about .app files in the src/ directory. The comment above mentions that MochiWeb does this, but, in fact, the Makefile with MW copies it to ebin/. So that does seem to be the right place. Also, my understanding of .hrl files and include/ is that it's only important to put them in include/ if code outside of your application will need to include them (which is more or less what you say, above, I think). Otherwise, src/ is fine. First off, have to join with everyone in saying just how extremely useful this series of articles is.

Second off, about .app files in the src/ directory. The comment above mentions that MochiWeb does this, but, in fact, the Makefile with MW copies it to ebin/. So that does seem to be the right place.

Also, my understanding of .hrl files and include/ is that it’s only important to put them in include/ if code outside of your application will need to include them (which is more or less what you say, above, I think). Otherwise, src/ is fine.

]]>
By: David Weldon http://spawnlink.com/articles/an-introduction-to-releases-with-erlybank/#comment-180 David Weldon Sat, 04 Oct 2008 21:28:04 +0000 http://spawnlink.com/?p=132#comment-180 Let's say I have a static resource file I needed to read in whenever I start my server - for example a list of US city names. I'm unclear about how paths get resolved so I'm not sure where I should put my file. During development I put it in something like $DEV_DIR/cities/citynames. When I do a release, do I put it in src? If so, when I run file:open("cities/citynames", [read]) will it know where to look? Let’s say I have a static resource file I needed to read in whenever I start my server - for example a list of US city names. I’m unclear about how paths get resolved so I’m not sure where I should put my file. During development I put it in something like $DEV_DIR/cities/citynames. When I do a release, do I put it in src? If so, when I run file:open(”cities/citynames”, [read]) will it know where to look?

]]>
By: Mitchell http://spawnlink.com/articles/an-introduction-to-releases-with-erlybank/#comment-179 Mitchell Sat, 04 Oct 2008 16:39:25 +0000 http://spawnlink.com/?p=132#comment-179 Stephan, Yes this is an application. To start it from an Erlang shell you can simply write: <div class="code"><pre>application:start(sasl).</pre></div>   SASL is the "System Architecture Support Layer" or something like that (I could be wrong on that second S). It gives applications logging support, alarm handlers, release handling, etc. It is usually started with every OTP application. Mitchell Stephan,

Yes this is an application. To start it from an Erlang shell you can simply write:

application:start(sasl).

 

SASL is the “System Architecture Support Layer” or something like that (I could be wrong on that second S). It gives applications logging support, alarm handlers, release handling, etc. It is usually started with every OTP application.

Mitchell

]]>
By: Stephan http://spawnlink.com/articles/an-introduction-to-releases-with-erlybank/#comment-177 Stephan Fri, 03 Oct 2008 13:38:11 +0000 http://spawnlink.com/?p=132#comment-177 Hi, thanks for this article series, it really brings light to my darkness ;) But I have a question: At the end you say to start SASL. Is this an application? Can you give an example? Regards, Stephan Hi,

thanks for this article series, it really brings light to my darkness ;)

But I have a question: At the end you say to start SASL. Is this an application? Can you give an example?

Regards,
Stephan

]]>
By: links for 2008-09-25 « Bloggitation http://spawnlink.com/articles/an-introduction-to-releases-with-erlybank/#comment-112 links for 2008-09-25 « Bloggitation Thu, 25 Sep 2008 21:23:55 +0000 http://spawnlink.com/?p=132#comment-112 [...] An Introduction to Releases with Erlybank (tags: erlang programming spawnlink) [...] [...] An Introduction to Releases with Erlybank (tags: erlang programming spawnlink) [...]

]]>
By: Mitchell http://spawnlink.com/articles/an-introduction-to-releases-with-erlybank/#comment-107 Mitchell Sat, 20 Sep 2008 05:22:03 +0000 http://spawnlink.com/?p=132#comment-107 Zamous, I saw this blog post already (I'm a troll, really :( haha) and its great, but unfortunately I use emacs almost exclusively now :) But thanks, its a great contribution to the textmate community. Zamous,

I saw this blog post already (I’m a troll, really :( haha) and its great, but unfortunately I use emacs almost exclusively now :) But thanks, its a great contribution to the textmate community.

]]>
By: Zamous http://spawnlink.com/articles/an-introduction-to-releases-with-erlybank/#comment-106 Zamous Sat, 20 Sep 2008 05:18:15 +0000 http://spawnlink.com/?p=132#comment-106 I know your company does a lot of Ruby on Rails, so assuming you use Textmate? I have a really simple command to compile Erlang in erl shell from Textmate if interested: http://www.citizencult.org/2008/09/18/compiling-erlang-within-textmate/ I know your company does a lot of Ruby on Rails, so assuming you use Textmate? I have a really simple command to compile Erlang in erl shell from Textmate if interested:

http://www.citizencult.org/2008/09/18/compiling-erlang-within-textmate/

]]>
By: Dmitriy Kopylenko http://spawnlink.com/articles/an-introduction-to-releases-with-erlybank/#comment-100 Dmitriy Kopylenko Thu, 18 Sep 2008 19:35:23 +0000 http://spawnlink.com/?p=132#comment-100 Mitchell. Very inforamtive series of articles you have going here. Thanks for that. I would really love to see some pointers, examples in the future installments, on how to integrate Java (using JInterface) with Erlybank e.g. write Java client. Thanks. Mitchell. Very inforamtive series of articles you have going here. Thanks for that.

I would really love to see some pointers, examples in the future installments, on how to integrate Java (using JInterface) with Erlybank e.g. write Java client.

Thanks.

]]>