From development to production ??
Hi, I have a probably common question. My problem is simple : I'm working in a development environment (a specific Zope server) on a web site powered by several Zope products, as well as several DTML methods and Python scripts (which have to be available to webmasters for customization). When I want to upgrade my production system with a new release of my web site, Zope products can be upgraded easilly, but it's a huge job to upgrade DTML methods and Python scripts, as I can't do an export/import operation... Is there any good way to handle such tasks ? Could the new "Revision Manager" product (or anyone else) be of any help for this job ?? Thanks for any help, Thierry -- Linux every day, keeps Dr Watson away... http://gpc.sourceforge.net -- http://www.ulthar.net
salut Thierry, have you looked at ZSyncer? http://www.zope.org/Members/andym/ZSyncer hope this helps Ben Thierry Florac wrote:
Hi,
I have a probably common question.
My problem is simple : I'm working in a development environment (a specific Zope server) on a web site powered by several Zope products, as well as several DTML methods and Python scripts (which have to be available to webmasters for customization).
When I want to upgrade my production system with a new release of my web site, Zope products can be upgraded easilly, but it's a huge job to upgrade DTML methods and Python scripts, as I can't do an export/import operation...
Is there any good way to handle such tasks ? Could the new "Revision Manager" product (or anyone else) be of any help for this job ??
Thanks for any help,
Thierry
On Tue, 2003-01-28 at 12:02, Ben Avery wrote:
salut Thierry,
have you looked at ZSyncer? http://www.zope.org/Members/andym/ZSyncer
hope this helps
Hi, I took a look at ZSyncer, and I think that this might be the good solution for me, at least to be able to synchronize simple objects like DTML Methods or Python scripts. But two more questions : - what are the requirements to be able to synchronize custom Zope products instances ? - are the permissions also synchronized ?? Many thanks, Thierry
Thierry, You can set up ZSyncer to synchronise products installed on both systems, so although you'll still have to install those on both systems, when you have done so, you will be able to set up the ZSyncers to synchronise the instances of those products no problem. I use this for some non-standard install products, like Xron DTML methods, so It should do your custom products too. Yes, permissions are synched as well, just tested this. Ben Thierry Florac wrote:
On Tue, 2003-01-28 at 12:02, Ben Avery wrote:
salut Thierry,
have you looked at ZSyncer? http://www.zope.org/Members/andym/ZSyncer
hope this helps
Hi,
I took a look at ZSyncer, and I think that this might be the good solution for me, at least to be able to synchronize simple objects like DTML Methods or Python scripts.
But two more questions : - what are the requirements to be able to synchronize custom Zope products instances ? - are the permissions also synchronized ??
Many thanks,
Thierry
On Tue, Jan 28, 2003 at 03:38:49PM +0000, Ben Avery wrote:
Thierry,
You can set up ZSyncer to synchronise products installed on both systems, so although you'll still have to install those on both systems, when you have done so, you will be able to set up the ZSyncers to synchronise the instances of those products no problem. I use this for some non-standard install products, like Xron DTML methods, so It should do your custom products too.
It syncs my custom products just fine. Be aware that zsyncer basically: - "exports" the stuff you're syncing to an in-memory pickle - transmits the pickle across the network - uses xml-rpc to have the remote server import this pickle So it's pretty much just a more convenient way to do import/export. I mention this because import / export of large items can take a looooong time. I don't recommend using zsyncer to transer 200 MB of stuff at once, or you'll be waiting forever for a success message. I've done this and gotten success eventually, but I feel a lot safer syncing in smaller batches. There are also some thorny issues, like unless the system time on the two systems is in sync, zsyncer will give you misleading information about what is and isn't in sync. -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's THE LATONIC COMPTROLLER! (random hero from isometric.spaceninja.com)
Paul Winkler wrote:
On Tue, Jan 28, 2003 at 03:38:49PM +0000, Ben Avery wrote:
[...]
There are also some thorny issues, like unless the system time on the two systems is in sync, zsyncer will give you misleading information about what is and isn't in sync.
ah yes, that explains some strangeness I've seen. what are the other thorny issues you've come across?
On Tue, Jan 28, 2003 at 07:43:23PM +0000, Ben Avery wrote:
Paul Winkler wrote:
On Tue, Jan 28, 2003 at 03:38:49PM +0000, Ben Avery wrote:
[...]
There are also some thorny issues, like unless the system time on the two systems is in sync, zsyncer will give you misleading information about what is and isn't in sync.
ah yes, that explains some strangeness I've seen. what are the other thorny issues you've come across?
That's about it, but it's very annoying and i'm not sure it's even behaving correctly within those constraints. the only other one is the limitation on pushing huge amounts of stuff at once. -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's THE WIGGED-SINGLE MOTHER! (random hero from isometric.spaceninja.com)
Thierry Florac wrote at 2003-1-28 10:09 +0100:
My problem is simple : I'm working in a development environment (a specific Zope server) on a web site powered by several Zope products, as well as several DTML methods and Python scripts (which have to be available to webmasters for customization). You have already learned about ZSyncer...
When you use it, you must keep in mind: * ZSyncer syncs objects as a whole together with all attributes and subobjects. There is no way to exclude parts of an object form being synced. * Because of this, you must organize your site in a special way. You must strictly separate infrastructure and common configuration (synced) from site specific configuration and content (not synced). * Objects containing both configuration and content pose big problems. A standard example is a ZCatalog. You (probably) would like to sync the configuration (index- and meta data-definitions) but you must not sync the content. We have no solution for this problem, yet. Dieter
participants (4)
-
Ben Avery -
Dieter Maurer -
Paul Winkler -
Thierry Florac