[Dancer-users] Global app-wide "prefix" settings

ambs ambs+dancer at perl-hackers.net
Wed Sep 28 22:09:55 CEST 2011


> Has anyone been able to deploy a Dancer application *not* under the server's root URL,
> without changing code/templates in the Dancer application itself ?

To deploy under a specific directory you need to make all your templates 
aware of it

   <% request.uri_base %>/images

Hope this helps
>
> That is:
> 1. create default dancer application.
>     the index route's URL is "/"
>     the images URL is "/images/*"
>     the CSS URL is "/css/*"
>
> 2. SOME CONFIGURATION in Apache ??
>
> 3. The root URL of the entire application is now "/gordon/":
>    the index route's URL is "/gordon/"
>    the images URL is "/gordon/images/*"
>    the CSS URL is "/gordon/css/*"
>
> What should I do in step 2 ?
>
> _______________________________________________
> Dancer-users mailing list
> Dancer-users at perldancer.org
> http://www.backup-manager.org/cgi-bin/listinfo/dancer-users



More information about the Dancer-users mailing list