[Zope] RE: uploading Zope site-

Chris Beaumont cbeaumon@msri.org
Sun, 10 Nov 2002 10:39:55 -0800


Dapo,

   Your Zope website is probably best served from Zope, or using Zope 
behind to Apache. If it has any dynamic features they would not 
translate to a static site at all..

But it sounds as if that may not be the case, and also that you need 
to host your files on your hosting provider..perhaps.

If your site is spider-friendly, (the URLs don't have any "?"s i.e. 
'query strings' in them, or require forms or Javascript to access any 
of the content.) you may be able to use a program like Gnu wget to 
spider your dynamic site, writing (actually, 'mirroring')  the 
content to your web directory hierarchy as static HTML files. Then 
they would be served by your ISPs web server like any other static 
content.

But you lose a lot in terms of what you can do.. a LOT.

You can install wget in your ISP shell account and use a cron job to 
launch it, fetching your content from your home Zope box at regular 
intervals.. Your home box would then become your 'staging server' as 
it is called..

You could also install wget or a similar program on your home box and 
use FTP to put the files into your ISPs web directory as you would 
any other HTML files..

Using this mirroring hack is a viable option when you are just using 
Zope's templating features, etc. to simplify the job of HTML coding 
of a large site and clearly don't need any kind of on-the-fly content 
negotiation or personalization..

There are even some advantages.. speed being the biggest one. On a 
given box, serving static content using Apache is almost always going 
to be faster than serving dynamic pages by any method.. (But a good 
Squid-based caching setup can come very close.)

Also, by doing what I describe you will avoid the need to run your 
own server 24/7..with the always-on Internet connection, static IP, 
etc..

HTH,

Chris Beaumont

>I am getting the hang of Zope and have just built (75%) a personal test
>website. Now to test it I want to load it to my ISP (linux, php, perl
>etc)where I have 100mb of space. I cannot find any How-to or FAQ to show
>me how. The Tutorial and the 'Book' do not go into it. Can someone point
>me in the right direction.
>Thanks
>
>Dapo
>