Try with appmods = <"/", erlyweb> in your yaws.conf and point your browser to http://localhost:31337/.
Note that the blog application isn´t finished and I am not sure about best practices, so I won´t recommend learning from it right now. The 32 is a whitespace. 1> [32]. " " On 25 Jan., 17:43, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello, > I'm trying to setup yaws+erlywebblog and get the following error > accessinghttp://localhost:31337/blog/: > > ERROR erlang code crashed: > File: appmod:0 > Reason: {noproc,{gen_server,call, > [mysql_dispatcher, > {fetch,erlydb_mysql, > [[[[<<"SELECT ">>,<<"*">>], > <<" FROM ">>, > <<"entry">>], > []], > [<<" ORDER BY ">>, > [[<<"id">>,32,<<"DESC">>]]]]}]}} > Req: {http_request,'GET',{abs_path,"/blog/"},{1,1}} > > Here is Yaws config: > <server > localhost> > port = > 31337 > listen = > 0.0.0.0 > docroot = /var/www/blog/ > www > appmods = <"/blog", > erlyweb> > > <opaque> > appname = > blog > </ > opaque> > dir_listings = > true > </server> > > Steps i did: > - downloaded erlyweblog from SVN to /var/www/blog/ > - cd there > - $ mysql -uroot -p blog < blog.sql > - erl > > Eshell V5.5.5 (abort with ^G) > 1> erlydb:start(mysql, [{hostname, "localhost"}, {username, "root"}, > {password, "pass"}, {database, "blog"}]). > ..... > > {ok,<0.39.0>} > 2> erlyweb:compile("/var/www/blog", [{erlydb_driver, mysql}]). > .... > {ok,{{2008,1,25},{19,5,25}}} > > I don't understand what is 32 in <<"id">>,32,<<"DESC">> and what I'm > doing wrong. > Thank You! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "erlyweb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en -~----------~----~----~----~------~----~------~--~---
