I don't understand the issue with portability in having the static content served by a web server (apache, lighttpd, nginx).<br>In fact, it is not even practical to deploy an app (used for more than a couple users) without a kind of proxy/load balancer in front.<br>
You can let the web server do what does the best, serving static content and the seaside to to what it does best, to run your app.<br><br>Never will Seaside, or comanche or (mongrel in ruby on rails case for the matter) be on par with a web server in serving static data.<br>
And you don't have to have a lot of user to decide to upgrade from "all in the image" to using a "just the app in the image/else on webserver" setup.<br>From the very beginning you can use all the cpu cicles used for Seaside for your app and not for serving images (that you can't cache in the image as you can in a webserver for faster response, ideally, without disk access, all served from memory)<br>
<br>Miguel Cobá<br><br><div class="gmail_quote">On Wed, Apr 23, 2008 at 3:30 PM, Torsten Bergmann <<a href="mailto:astares@gmx.de">astares@gmx.de</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
in general there are three ways:<br>
<br>
1. serve files using an external server/location (Apache)<br>
2. create a WAFileLibrary<br>
3. let the Squeak webserver serve files from hard disk<br>
<br>
1. is not good for portability, 2. bloats the image - so 3. may be your<br>
option to choose.<br>
You can do this either with an WAExternalFileLibrary implementation as Holger already explained or by serving the files directly using a file serving module for KomHttpServer:<br>
<br>
For an example either have a look at "Webserver-tbn.4.mcz" in "<a href="http://www.squeaksource.com/DeveloperWorkspace" target="_blank">www.squeaksource.com/DeveloperWorkspace</a>" or read <a href="http://www.shaffer-consulting.com/david/Seaside/GettingSoftware/index.html" target="_blank">http://www.shaffer-consulting.com/david/Seaside/GettingSoftware/index.html</a><br>
<br>
Bye<br>
Torsten<br>
<font color="#888888">--<br>
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten<br>
Browser-Versionen downloaden: <a href="http://www.gmx.net/de/go/browser" target="_blank">http://www.gmx.net/de/go/browser</a><br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</font></blockquote></div><br>