AH thanks, that seems to have done it.

--Zach

On Fri, Apr 22, 2011 at 3:01 PM, Dominique Boucher <dominique.boucher@nuecho.com> wrote:
Did you put the line in the <server> section? It should be in the global section (usually before any <server> section).


On 11-04-22 07:57 AM, Zachary Kessin wrote:
Tried that, got this response:

Yaws: Bad conf: "Unexpected input [\"ebin_dir\",'=',\"/home/zach/InCharecter/\"] at line 16"

--Zach


On Fri, Apr 22, 2011 at 2:50 PM, Dominique Boucher <dominique.boucher@nuecho.com> wrote:
HI Zachary,

have you tried putting the following line in your yaws.conf file:

ebin_dir = /home/zach/InCharecter

I doubt Yaws (Erlang) looks in the doc root directory when loading .beam files. In fact, I would rather put .beam files in another directory not reachable from the doc root directory, and fix the ebin_dir line accordingly.

Hope this helps!

--Dominique


On 11-04-22 07:29 AM, Zachary Kessin wrote:
Hi 
I hope someone can help me. I am transitioning to developing with Erlang/Yaws after serveral years of PHP.

I'm having trouble setting up an app mod service I created a yaws.conf file 

<server localhost>
        port = 8000
        listen = 127.0.0.1
        docroot = /home/zach/InCharecter/
        appmods = <book, book>
</server>

and put the book.erl (which I jsut took from the example)

-module(book).
-author('zkessin@gmail.com').
-include("/usr/lib/yaws/include/yaws_api.hrl").
-compile(export_all).
box(Str) ->
    {'div',[{class,"box"}],
     {pre,[],Str}}.
out(A) ->
    {ehtml,
     [{p,[],
       box(io_lib:format("A#arg.appmoddata = ~p~n"
                         "A#arg.appmod_prepath = ~p~n"
                         "A#arg.querydata = ~p~n", 
                         [A#arg.appmoddata,
                          A#arg.appmod_prepath,
                          A#arg.querydata]))}]}.


And all it seems to do is give is an internal error. (The book.erl and book.beam files are in the doc root)

--Zach
------------------------------------------------------------------------------ Fulfilling the Lean Software Promise Lean software platforms are now widely adopted and the benefits have been demonstrated beyond question. Learn why your peers are replacing JEE containers with lightweight application servers - and what you can gain from the move. http://p.sf.net/sfu/vmware-sfemails
_______________________________________________ Erlyaws-list mailing list Erlyaws-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/erlyaws-list