Greetings. I'm a new user trying to get my head around the ErlyWeb
(0.6.2) framework, as it sounds like exactly the elegant development
environment that I've been looking for.
After reading the replies to someone else with a similar problem, I've
upgraded to the latest Erlang (R11B-5) and YAWS 1.73. I'm barely
competent doing Linux program installs, so deviating from the regular
distribution and installing these was a bit daunting for me (I'm not
100% sure it's all perfect, but it does seem to all work now) ;-)
I'm able to get partway through Yariv's tutorial:
yaws -i
>erlyweb:create_app("music", "/home/richard/apps").
info:erlyweb_util:39: creating "/home/richard/apps/music"
info:erlyweb_util:39: creating "/home/richard/apps/music/src"
info:erlyweb_util:39: creating "/home/richard/apps/music/src/
components"
info:erlyweb_util:39: creating "/home/richard/apps/music/www"
info:erlyweb_util:39: creating "/home/richard/apps/music/ebin"
info:erlyweb_util:70: creating "/home/richard/apps/music/src/
components/html_container_view.et"
info:erlyweb_util:70: creating "/home/richard/apps/music/src/
components/html_container_controller.erl"
info:erlyweb_util:70: creating "/home/richard/apps/music/src/
music_app_controller.erl"
info:erlyweb_util:70: creating "/home/richard/apps/music/www/
index.html"
info:erlyweb_util:70: creating "/home/richard/apps/music/www/
style.css"
Notice I didn't get a '/apps/music/src/music_app_view.et' file. I
don't know if this means anything.
I edit the yaws.conf file:
<server flere-imsaho>
port = 80
listen = 0.0.0.0
docroot = /home/richard/apps/music/www
appmods = <"/music", erlyweb>
<opaque>
appname = music
</opaque>
</server>
{note, I've tried putting the "/music" within quotes and without.}
Finally, I do a >yaws:restart().
I get the "Welcome to 'music', your new ErlyWeb app." screen if I
browse http://localhost
However if I use http://localhost/music, like in the example, it
crashes with:
ERROR erlang code crashed:
File: appmod:0
Reason: {{badrecord,arg},
[{yaws_arg,opaque,1},
{erlyweb,get_app_name,1},
{erlyweb,out,1},
{yaws_server,deliver_dyn_part,8},
{yaws_server,aloop,3},
{yaws_server,acceptor0,2},
{proc_lib,init_p,5}]}
Req: {http_request,'GET',{abs_path,"/music"},{1,1}}
Can someone help me get over this hurdle?
Much appreciated,
Richard
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---