Changing the default resources directory

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Changing the default resources directory

Carl Gundel
By default when I display PNG images from my Seaside application I find that
I must put my files into the VisualWorks web\examples directory.  Is there
any way to change this to some other location?

-Carl Gundel, author of Liberty BASIC
http://www.libertybasic.com


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Changing the default resources directory

Michel Bany-3
Carl Gundel a écrit :

>By default when I display PNG images from my Seaside application I find that
>I must put my files into the VisualWorks web\examples directory.  Is there
>any way to change this to some other location?
>
>  
>
During Seaside install, a "seaside" site is created (unless you declined).
This sample site is configured to use web\examples as its "home" directory.
You can change this "home" directort using the /configure page.
You can also change it programatically.
    (VisualWave.WebSite siteNamed: 'seaside')
        configParameters at: 'directory' put: 'yourpath'.
You can also create a completely new site using an *.ini file
not necessarily named 'seaside' as explained in the documentation.
You just need to make sure that the urls drive the SeasideServlet servlet.
HTH
Michel
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside