Erlang/OTP Forums

Author Message

<  Erlyweb mailing list  ~  Initial startup detection

Guest
Posted: Thu Feb 21, 2008 4:49 am Reply with quote
Guest
Does yaws or erlyweb call an initialisation hook function or is there a
way to detect the first call to hook/1? I was thinking of adding an
init() or startup function to the my_app_controller.erl to set the
environment up and make sure tables are initialised correctly etc.

Jeff.


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

Post recived from mailinglist
Guest
Posted: Thu Feb 21, 2008 5:41 am Reply with quote
Guest
I usually start yaws with the '--runmod module' option. It expects the
module to implement the 'start()' function and it calls it upon
startup.

On Wed, Feb 20, 2008 at 8:51 PM, jm <jeffm@ghostgun.com> wrote:
>
> Does yaws or erlyweb call an initialisation hook function or is there a
> way to detect the first call to hook/1? I was thinking of adding an
> init() or startup function to the my_app_controller.erl to set the
> environment up and make sure tables are initialised correctly etc.
>
> Jeff.
>
>
> >
>

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

Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum