New to Zope needs some help
I am VERY new with Zope and am trying to understand how it all works. My question: once I have developed something in Zope, how do I "upload it" -using the normal methaphor for web sites- to a hosting server/site? Help is appreciated! Antonio E. Senior e-mail: <mailto:aes@myrealbox.com> asenior@enred.com
Welcome to the Zope world. Nothing personal, but many people on the list will not read HTML mail, so you might want to send mail in plain text. Since zope works with objects and not files (as normal people think of files), we usually use many different means of moving them: 1) scp a Zope export (.zexp or .xml) file up to your zope server, put it in the /import directory and select import from the zope management interface 2) if these are images, you can ftp them into zope via zope's ftp server 3) use ZSyncer to sync between two zope instances 4) ask me to check if ZImporter still works - it allows uploading and importing .zexp files over http I'm sure there are more, but those are what come to mind... Troy A E Senior wrote:
I am VERY new with Zope and am trying to understand how it all works. My question: once I have developed something in Zope, how do I “upload it” –using the normal methaphor for web sites- to a hosting server/site?
Help is appreciated!
*/Antonio E. Senior/*
*e-mail*: asenior@enred.com <mailto:aes@myrealbox.com>
On Tuesday 20 May 2003 10:16 am, A E Senior wrote:
My question: once I have developed something in Zope, how do I "upload it" -using the normal methaphor for web sites- to a hosting server/site?
The short but misleading answer is: you export on the development box, ftp the *.zexp file, and then import on the production box. You will probably find it confusing that the export file winds up in your "var" directory, while the import file must be placed in "import" for the production box to find it. The reason has to do with security. This is misleading though, because it turns out that the "staging" model you describe, while standard for static websites, does not lend itself as easily to web application deployment. You will need to think carefully about: * Where does site information originate? Does the production site evolve as a result of user actions? If so, you will need to merge those changes back into your upgrades, or you will lose them. * What's different about your development and production servers? For example, you may also need to install extra Zope Products in order for them to be compatible. * And finally, what external resources are you relying on? Such as an SQL server, local filesystem, local webserver, etc? So, in your particular case, you may or may not need a more complicated deployment scheme (such as importing part of the site). It's basically about the separation of program and data -- and that is somewhat contrary to the principles of object-oriented design, in which they are intermingled. There is also a product called "ZSyncer" that is for synchronizing Zope instances. It might be more appropriate for your situation. Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com
[A E Senior wrote (aes@myrealbox.com) on 5/20/03 1:16 PM]
I am VERY new with Zope and am trying to understand how it all works. My question: once I have developed something in Zope, how do I ³upload it² using the normal methaphor for web sites- to a hosting server/site?
you can upload the Data.fs file to your Zope instance on the public server, export certain sections of your ZODB in zexp format and import them into your Zope instance on the public server or use FTP and WebDAV. So you have a lot of options. But if your host does not host zope and is straight Apache, PHP, Perl etc, then this will not work. You will have to extract static pages form your zope using, e.g. wget and then upload those to your host. hth <--> george donnelly - http://www.zettai.net/ - "We Love Newbies" :) Zope Hosting - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet - MSN: zettainet@hotmail.com - ICQ: 51907738
I am VERY new with Zope and am trying to understand how it all works. My question: once I have developed something in Zope, how do I “upload it” –using the normal methaphor for web sites- to a hosting server/site?
If your host runs Zope, then use import/export, Data.fs copy, ZSyncer to move data from your development instance to your host's instance. You can also consider doing the development on the host's instance to eliminate that step. If your host doesn't use Zope, and you're using Zope to develop the site, you can download the rendered pages somehow to make a static image (this is usually very platform dependant) and then upload that to your host's static webserver the usual way. But if you're creating a static site, Zope may not be the best way to do that. --jcc
participants (5)
-
A E Senior -
george donnelly -
J Cameron Cooper -
Terry Hancock -
Troy Farrell