Erlang Mailing Lists

Author Message

<  Yaws mailing list  ~  exclude paths from appmod

Guest
Posted: Fri Dec 18, 2009 10:50 pm Reply with quote
Guest
Hi all,

The ability to exclude paths from a root appmod was introduce in the last release 1.86.

It works fine but when I play with embeded mode and try to fill myself the #sconf{} record, I got an error
in yaws_config:verify_upgrade_args functions.

I fill the appmods field with something like that where the third element of the tuple contains excluded
directories :

[{"/",myapp,
[["icons"],
["js"],
["top","static"],
["static"],
["bonjour"],
["bla"]]}],


but verify_upgrade_args always wait a tuple {X,Y} (when no excluded directories defined)

I patched this function to handle {X,Y} and {X,Y,Z} tuples .


did i miss something ?


thank you for help








Post received from mailinglist
Guest
Posted: Fri Dec 18, 2009 10:57 pm Reply with quote
Guest
wde wrote:
> Hi all,
>
> The ability to exclude paths from a root appmod was introduce in the last release 1.86.
> but verify_upgrade_args always wait a tuple {X,Y} (when no excluded directories defined)
>
> I patched this function to handle {X,Y} and {X,Y,Z} tuples .
>
>
> did i miss something ?

No, you didn't - thanks a bunch, applied and pushed.

/klacke

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist
Guest
Posted: Sun Dec 20, 2009 11:32 am Reply with quote
Guest
Hi,

if I define an appmod for "/" with excluded paths, how to handle a request on "/" ?

Yaws seems to automatically transform the request to "/index.html".

Is that correct ? I have to handle a "special case" in my appmod for "index.html" requests ?


thank you







======= le 18/12/2009, 23:56:29 vous
Guest
Posted: Sun Dec 20, 2009 11:44 am Reply with quote
Guest
It's not really a problem, but if I understand the code of yaws_server :

Yaws calls try_index_file and do an I/O on disk and I don't want this

thank you for your help





======= le 20/12/2009, 12:31:50 vous
Guest
Posted: Sun Dec 20, 2009 12:58 pm Reply with quote
Guest
I wrote this patch to handle a "/" request with a root appmod and excluded paths







======= le 20/12/2009, 12:44:03 vous
Guest
Posted: Sun Dec 20, 2009 5:31 pm Reply with quote
Guest
On Sun, Dec 20, 2009 at 7:57 AM, wde <wde@free.fr (wde@free.fr)> wrote:
Quote:
I wrote this patch to handle a "/" request with a root appmod and excluded paths


I wrote a new unit test to try to duplicate this problem, and unfortunately it succeeded. Your patch works -- applied and pushed.


thanks,
--steve


Post received from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum