I am trying to manage Yast appmod. So:
yaws.conf:
<server localhost>
port = 8005
listen = 127.0.0.1
docroot = /home/ziel/www/CatsScript/src/
appmods = </, myappmod>
</server>
from http://yaws.hyber.org/appmods.yaws myappmod.erl:
-module(myappmod2).
-author('[email protected]').
-include("/home/ziel/erlang/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 it worked when I used it first time. But later when I changed something in myappmod.erl nothing changed in response from server. Than I deleted myappmod.erl, but it still works. What should I do to make some changes?