Erlang/OTP Forums

Author Message

<  Erlyweb mailing list  ~  Weird yaws behavious

Guest
Posted: Mon Mar 31, 2008 7:35 pm Reply with quote
Guest
Hi

I have an erlyweb application using the erlang2facebook API. When I
start yaws, it runs without any problems. This is how I start yaws:

/usr/bin/yaws -i --conf ./yaws.conf -pa /usr/lib/yaws/ebin/ -pa /usr/
local/lib/erlang/lib/ -sname yawsserv

I am able to start the application successfully with this start.erl
script:

-module(start).
-export([boot/0, boot/1]).

boot() ->
boot(true).
boot(false) ->
compile();
boot(true) ->
mysql_start(),
compile().

mysql_start() ->
erlydb:start(mysql, [{hostname, "localhost"},
{username, "username"},
{password, "password"},
{database, "databasename"}]).

compile() ->
erlyweb:compile("/path/to/app",
[{erlydb_driver, mysql},
{auto_compile, true}]).

What happens is that yaws stays up for a while after I start the
application and then it just dies silently without leaving any errors
in the log files.

Has anyone had such an issue with yaws/erlyweb before?

Nii Amon
--~--~---------~--~----~------------~-------~--~----~
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: Tue Apr 08, 2008 4:08 am Reply with quote
Guest
I have never seen this kind of issue before. It sounds quite bizzare.

On Mon, Mar 31, 2008 at 12:34 PM, nii amon <jazzyy@gmail.com> wrote:
>
> Hi
>
> I have an erlyweb application using the erlang2facebook API. When I
> start yaws, it runs without any problems. This is how I start yaws:
>
> /usr/bin/yaws -i --conf ./yaws.conf -pa /usr/lib/yaws/ebin/ -pa /usr/
> local/lib/erlang/lib/ -sname yawsserv
>
> I am able to start the application successfully with this start.erl
> script:
>
> -module(start).
> -export([boot/0, boot/1]).
>
> boot() ->
> boot(true).
> boot(false) ->
> compile();
> boot(true) ->
> mysql_start(),
> compile().
>
> mysql_start() ->
> erlydb:start(mysql, [{hostname, "localhost"},
> {username, "username"},
> {password, "password"},
> {database, "databasename"}]).
>
> compile() ->
> erlyweb:compile("/path/to/app",
> [{erlydb_driver, mysql},
> {auto_compile, true}]).
>
> What happens is that yaws stays up for a while after I start the
> application and then it just dies silently without leaving any errors
> in the log files.
>
> Has anyone had such an issue with yaws/erlyweb before?
>
> Nii Amon
> >
>

--~--~---------~--~----~------------~-------~--~----~
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