Hi Steve,
Concerning points 1 (and probably 3); I suspect that the yapp handler might be
a bit "rusty", there have been a couple of changes concerning virtual hosts
in Yaws itself which had impact on yapp, but I haven't followed up the very
latest updates so I will have a look at it.
For point 2, if you run Yaws in interactive mode (yaws -i), which can be handy
when developing apps, then I beleive you just can do "l(module)" from the
shell after you compiled your module. You need have your applications ebin
directory in the load path, but I guess that you have that as it works in the
first place. If that works I hope point 3 will not bother you - let me know.
Best Regards
Mikael
Tuesday 27 November 2007 16:10:19 Steve Vinoski wrote:
> Hi, I've got a few yapp questions. I'm relatively new to all this so
> please be gentle. :-)
>
> 1. I believe have my yapp properly configured as per the instructions.
> I do the mnesia:create_schema([node()]) thing. I run yaws, visit the
> /yapp URL, and using that menu, add my yapp. It starts and runs
> correctly, but occasionally I visit one of its URLs and it returns
> 404, but if I just refresh the browser all is well. Any ideas why?
>
> 2. I then want to extend or modify my yapp, or more specifically, an
> appmod underneath it. I modify and recompile the code, but it doesn't
> get automatically reloaded. Going into the shell under yaws and
> running application:stop and start doesn't seem to help, nor does
> code:load_file or anything like that. How can I get the newly compiled
> code to load without stopping yaws?
>
> 3. Because of issue 2 above, I have to init:stop() and then restart
> yaws. But when I do that, my yapp no longer works, nor does yapp
> itself. I have to stop yaws, delete the mnesia schema, recreate it,
> and then go back into yaws, visit the /yapp URL again, and add my yapp
> through that menu. It also seems that I have to start from scratch
> like this anytime the code hits an error. What am I missing?
>
> thanks,
> --steve
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Erlyaws-list mailing list
> Erlyaws-list@...
> https://lists.sourceforge.net/lists/listinfo/erlyaws-list
|