Yariv Sadan wrote:
> Ugh, you must be using a different version of Yaws than the one I
> compiled against. I compiled against 1.73. You can either recompile
> ErlyWeb yourself against your Yaws installation or upgrade Yaws.
>
>   
I went the easy (?) way and installed yaws 1.73. Argh! I must be stupid 
or something:

    <server dmitriid>
            port = 81
            listen = 0.0.0.0
            docroot = /home/dmitriid/data/www/erlyweb/buktu/www/
            appmods = </, erlyweb>
            <opaque>
                appname = buktu
            </opaque>
    </server>


When I navigate to http://localhost:81/ I get:

    ERROR erlang  code  crashed:
     File: appmod:0
    Reason: {no_application_data,"Did you forget to call
    erlyweb:compile(AppDir)
    or add the app's previously compiled .beam files to the Erlang code
    path?"}
    Req: {http_request,'GET',{abs_path,"/"},{1,1}}

Even though I did compile it:

     > erlyweb:compile("/home/dmitriid/data/www/erlyweb/buktu",
    [{auto_compile, true}]).
    debug:erlyweb_compile:382: Compiling Erlang file "buktu_app_controller"
    debug:erlyweb_compile:377: Compiling ErlTL file "html_container_view"
    debug:erlyweb_compile:382: Compiling Erlang file
    "html_container_controller"
    {ok,{{2007,12,29},{12,33,47}}}

However, if I change the appmod in yaws.conf to

    appmods = </buktu, erlyweb>

and navigate to http://localhost:81/, I get erlyweb's welcome screen. 
Now, if I create a, say, view_controller.erl and try to navigate to 
http://localhost:81/view, I get a 404 Not Found error. If I navigate to 
http://localhost:81/buktu/view, I get a "no-application_data" error 
(same as above).

:(

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

Reply via email to