Hello All, I need to transfer Plone/Zope settings from a test instance to a live instance of the Zope server. Aside from transferring the entire Data.fs file or manually copying scripts and replicating configuration settings, is there a simple way to do this? Any advice would be greatly appreciated, Regards, Joel
--On 14. Juni 2005 00:09:58 -0700 jlegris <joel.legris@egadss.org> wrote:
Hello All,
I need to transfer Plone/Zope settings from a test instance to a live instance of the Zope server. Aside from transferring the entire Data.fs file or manually copying scripts and replicating configuration settings, is there a simple way to do this?
This way is simple if you think about your system setup before starting development. If you put your customization into a dedicated product and put this under revision control then you can easily keep track of change on test and production server. -aj
Wow, thanks for the quick response. I took this precaution while customizing a Product that I was working on, but in this case I inherited a system that was primarily customized through the ZMI. Is there any way to transfer those settings? Joel
-----Original Message----- From: Andreas Jung [mailto:lists@andreas-jung.com] Sent: Tuesday, June 14, 2005 12:19 AM To: jlegris; zope@zope.org Subject: Re: [Zope] Transferring Zope Settings
--On 14. Juni 2005 00:09:58 -0700 jlegris <joel.legris@egadss.org> wrote:
Hello All,
I need to transfer Plone/Zope settings from a test instance to a live instance of the Zope server. Aside from transferring the entire Data.fs file or manually copying scripts and replicating configuration settings, is there a simple way to do this?
This way is simple if you think about your system setup before starting development. If you put your customization into a dedicated product and put this under revision control then you can easily keep track of change on test and production server.
-aj
You got the solution already : copy the Data.fs -aj --On 14. Juni 2005 00:27:25 -0700 jlegris <joel.legris@egadss.org> wrote:
Wow, thanks for the quick response. I took this precaution while customizing a Product that I was working on, but in this case I inherited a system that was primarily customized through the ZMI. Is there any way to transfer those settings?
Joel
-----Original Message----- From: Andreas Jung [mailto:lists@andreas-jung.com] Sent: Tuesday, June 14, 2005 12:19 AM To: jlegris; zope@zope.org Subject: Re: [Zope] Transferring Zope Settings
--On 14. Juni 2005 00:09:58 -0700 jlegris <joel.legris@egadss.org> wrote:
Hello All,
I need to transfer Plone/Zope settings from a test instance to a live instance of the Zope server. Aside from transferring the entire Data.fs file or manually copying scripts and replicating configuration settings, is there a simple way to do this?
This way is simple if you think about your system setup before starting development. If you put your customization into a dedicated product and put this under revision control then you can easily keep track of change on test and production server.
-aj
Hi Andreas, In this case, copying the Data.fs file isn't a feasible solution because there is plenty of user content that would get over-written. The test instance of course doesn't contain this data. I am pretty new to Zope, so it's possible that I don't fully understand the development process when using this tool, but I would find it surprising if there isn't a way to administer updates without affecting content or manually replicating configuration settings. Is this an inherent weakness of Zope? Joel
-----Original Message----- From: Andreas Jung [mailto:lists@andreas-jung.com] Sent: Tuesday, June 14, 2005 12:32 AM To: jlegris; 'Andreas Jung'; zope@zope.org Subject: RE: [Zope] Transferring Zope Settings
You got the solution already : copy the Data.fs
-aj
--On 14. Juni 2005 00:27:25 -0700 jlegris <joel.legris@egadss.org> wrote:
Wow, thanks for the quick response. I took this precaution while customizing a Product that I was working on, but in this case I inherited a system that was primarily customized through the ZMI. Is there any way to transfer those settings?
Joel
-----Original Message----- From: Andreas Jung [mailto:lists@andreas-jung.com] Sent: Tuesday, June 14, 2005 12:19 AM To: jlegris; zope@zope.org Subject: Re: [Zope] Transferring Zope Settings
--On 14. Juni 2005 00:09:58 -0700 jlegris <joel.legris@egadss.org> wrote:
Hello All,
I need to transfer Plone/Zope settings from a test instance to a live instance of the Zope server. Aside from transferring the entire Data.fs file or manually copying scripts and replicating configuration settings, is there a simple way to do this?
This way is simple if you think about your system setup before starting development. If you put your customization into a dedicated product and put this under revision control then you can easily keep track of change on test and production server.
-aj
--On 14. Juni 2005 00:46:51 -0700 jlegris <joel.legris@egadss.org> wrote:
Hi Andreas,
In this case, copying the Data.fs file isn't a feasible solution because there is plenty of user content that would get over-written. The test instance of course doesn't contain this data. I am pretty new to Zope, so it's possible that I don't fully understand the development process when using this tool, but I would find it surprising if there isn't a way to administer updates without affecting content or manually replicating configuration settings. Is this an inherent weakness of Zope?
Basicially a weakness of your approach using Zope. Zope does distinguish between user content, customizations or whatever...everything is an object. -aj
Hi Andreas, As I indicated in a previous email, I inherited a system that was primarily configured through the ZMI. Recognizing that application development through the ZMI imposes certain limitations (such as rudimentary version control), I managed the development in a manner that you suggested in your initial response. Given these facts, how do you suggest I improve my approach? Based on the two suggestions that you generously offered, I am still puzzled as to how this problem can be solved. Clearly, transferring the Data.fs from the test server to the production server is insufficient given the user data mismatch. Therefore, it would seem that my only option, given the circumstances would be to manually replicate the configuration in the production server. However, my better judgment leads me to think that this isn't sensible. Is there no alternative? Regards Joel
-----Original Message----- From: Andreas Jung [mailto:lists@andreas-jung.com] Sent: Tuesday, June 14, 2005 1:05 AM To: jlegris; 'Andreas Jung'; zope@zope.org Subject: RE: [Zope] Transferring Zope Settings
--On 14. Juni 2005 00:46:51 -0700 jlegris <joel.legris@egadss.org> wrote:
Hi Andreas,
In this case, copying the Data.fs file isn't a feasible solution because there is plenty of user content that would get over-written. The test instance of course doesn't contain this data. I am pretty new to Zope, so it's possible that I don't fully understand the development process when using this tool, but I would find it surprising if there isn't a way to administer updates without affecting content or manually replicating configuration settings. Is this an inherent weakness of Zope?
Basicially a weakness of your approach using Zope. Zope does distinguish between user content, customizations or whatever...everything is an object.
-aj
On Tue, 14 Jun 2005 01:57:28 -0700, jlegris wrote:
Hi Andreas,
As I indicated in a previous email, I inherited a system that was primarily configured through the ZMI. Recognizing that application development through the ZMI imposes certain limitations (such as rudimentary version control), I managed the development in a manner that you suggested in your initial response. Given these facts, how do you suggest I improve my approach?
Based on the two suggestions that you generously offered, I am still puzzled as to how this problem can be solved. Clearly, transferring the Data.fs from the test server to the production server is insufficient given the user data mismatch. Therefore, it would seem that my only option, given the circumstances would be to manually replicate the configuration in the production server. However, my better judgment leads me to think that this isn't sensible. Is there no alternative?
Zope allows free mixing of content, code and configuration, so working out which parts are which, in order to update code and configuration while leaving content alone, is up to you as the maintainer of the individual solution. If you can tell which parts of the OFS tree represent the data, vs. which parts represent the code and configuration you want to update, exporting the appropriate folders/objects from your development system and importing them to your live one may do the job, or at least get you most of the way there. If it's not that simple - if you've got objects (eg tools) containing both configuration and content, you can't avoid having to do a bit more work, but that doesn't mean there's no alternative to the time-consuming and error-prone approach of manually re-applying your changes. Anything you can do in the ZMI can be done in code, so these configuration changes can be scripted, and the script can be tested on a fresh copy of the live data before being used for real. Thanks, Malcolm. -- [] j a m k i t web solutions for charities malcolm cleaton T: 020 7549 0520 F: 020 7490 1152 M: 07986 563852 W: www.jamkit.com
Hi Joel, jlegris wrote:
Clearly, transferring the Data.fs from the test server to the production server is insufficient given the user data mismatch. Therefore, it would seem that my only option, given the circumstances would be to manually replicate the configuration in the production server. However, my better judgment leads me to think that this isn't sensible. Is there no alternative?
If you have "settings" and "user data" (not sure exactly what that means in terms of which objects are which) in the ZODB, and you need to update some and keep some, the way I would go about it is as follows: - - Identify in your production data.fs what user data needs preserving - Export these to disk as .zexp files. - Drop in the new data.fs - Test - Import the user data from the .zexp files on disk Clearly, in your case treating the data.fs as a single monolithic entity will not work for you - you need a way of splitting up the two types of data that need to be treated in two different ways. I do the above fairly frequently - I have a Plone site that seems to be nomadic, and has passed through a number of data.fs instances in it's life. The only "gotcha" I've encountered is where the products were out of sync between instances. (Note that this is pretty much what Tino has already said - I'm just expanding on it a bit to try and get some "traction".) Is there any reason why the above would not work for you? I have a nagging feeling I'm missing something here...which I think flows form your use of the term "settings" - would you care to expand on what objects you are thinking of? -- Regards, PhilK Email: phil@xfr.co.uk PGP Public key: http://www.xfr.co.uk Voicemail & Facsimile: 07092 070518 "You'll find that one part's sweet and one part's tart: say where the sweetness and the sourness start." - Tony Harrison
Am Dienstag, den 14.06.2005, 00:09 -0700 schrieb jlegris:
Hello All,
I need to transfer Plone/Zope settings from a test instance to a live instance of the Zope server. Aside from transferring the entire Data.fs file or manually copying scripts and replicating configuration settings, is there a simple way to do this?
transferring Data.fs is the simplest and most solid aproach. Followed by export/import.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 jlegris wrote:
Hello All,
I need to transfer Plone/Zope settings from a test instance to a live instance of the Zope server. Aside from transferring the entire Data.fs file or manually copying scripts and replicating configuration settings, is there a simple way to do this?
Any advice would be greatly appreciated,
CMF 1.5 introduced a new 'portal_setup' tool which is designed to export such configurations in an extensible way: http://cvs.zope.org/CMF/CMFSetup Unfortunately, I don't believe any shipping version of Plone is compatible with CMF 1.5, and the tool as configured expects a few things which break in CMF 1.4. You might be able to hack around that breakage, however. Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCru/U+gerLs4ltQ4RAuV5AJ949X00mtcfMAFrEBciN5+HKK8xQACePo5F eB0LgsSYXlaZqgqdVj7+iXs= =IlQ/ -----END PGP SIGNATURE-----
jlegris wrote:
Hello All,
I need to transfer Plone/Zope settings from a test instance to a live instance of the Zope server. Aside from transferring the entire Data.fs file or manually copying scripts and replicating configuration settings, is there a simple way to do this?
Any advice would be greatly appreciated,
The ZSyncer product may help. I don't recall how good it is at syncing attributes, but it can certainly help you get your tools and skins and whatnot configured the same. --jcc -- "Building Websites with Plone" http://plonebook.packtpub.com/
On Tue, Jun 14, 2005 at 11:56:47AM -0500, J Cameron Cooper wrote:
The ZSyncer product may help. I don't recall how good it is at syncing attributes, but it can certainly help you get your tools and skins and whatnot configured the same.
ZSyncer currently syncs only entire objects. So if you sync a folder, you automatically sync all its sub-objects. But it can still help with some things, if e.g. it's safe to sync your entire portal_skins tool. -- Paul Winkler http://www.slinkp.com
jlegris wrote:
Hello All,
I need to transfer Plone/Zope settings from a test instance to a live instance of the Zope server. Aside from transferring the entire Data.fs file or manually copying scripts and replicating configuration settings, is there a simple way to do this?
Any advice would be greatly appreciated,
Regards,
Joel
------------------------------------------------------------------------
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Hi Joel, we have developped a product that we use for syncing developpment and production sites. It is called RedPick and you can find it at http://www.redcor.ch/produkte_html/redpick http://www.redcor.ch/produkte_html/redpick/Documentation it has a readme file that does explain its use. Consult it to check whether it fits your needs. Robert
participants (9)
-
Andreas Jung -
J Cameron Cooper -
jlegris -
Malcolm Cleaton -
Paul Winkler -
Philip Kilner -
robert rottermann -
Tino Wildenhain -
Tres Seaver