Forums / Install & configuration / Managing Multiple Install Instances

Managing Multiple Install Instances

Author Message

Russell Michell

Monday 25 August 2008 3:43:02 pm

Hi everyone,

I wanted to ask if any has encountered a scenario such as mine, or if not, to suggest a better course of action, if indeed there is one! :-)

We currently have 2 eZ 4.0.1 installs running on MySQL 4.1 behind Apache 2.2.8 on two different ports.

* DEV (8085: DEVelopment)
* ED (8086: EDitorial)

The idea is that new template/CSS design stuff, content objects and other custom mods should be made and tested on DEV and these changes then ported to ED, once confirmed working as desired for our uses.

I wanted to ask if anyone is doing something similar, and how they managed to successfully "merge" changes from one to the other. We are using SVN to track our changes, and I'm sure this might figure in some solution?

At present, my only idea is to periodically copy across:

* All settings files from DEV to ED.
* All design, template, CSS extension files from DEV to ED.
* Export only structural DB data (ie: not content) from DEV and import into ED.

However with regard to the latter, I'm unable to find a recent enough DB Schema (and description) that will tell me which tables deal with content (Text, non design images, uploaded files etc)

Has anyone done anything similar or is mine not the most intelligent approach?

Where can I find a recent eZ DB Schema? I can't use Rational XDE as it doesn't seem to support MySQL (We have an older version, maybe the newer one does??) but even if successful, this won't tell me what tables are used for content and which for config/structural data.

Thanks a lot for your time.
Russ

Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom

Believe nothing, consider everything.

Gaetano Giunta

Tuesday 26 August 2008 1:00:48 pm

Using svn for syncing DEV stuff to PROD is quite common procedure. You can find a nice article about that in the ez.no website dev section. You just have to decide how to lay out your svn (whether to include the full ez source or only the custom code, how to deal with the ini files that differ between dev and prod, the naming convention for the tagged releases that will hit prod after the first version etc...) and whether to use svn merge, svn switch or plain ftp/rsync for deployment on the prod server.

For "things" that are stored inside the db, you can use eZ packages for moving classes, content objects or design. Unfortunately it is not a bulletproof solution, and it cannot export everything. For the likes of roles/permissions, workflows, rss exports etc, the best thing is to try to set them up as correctly as possible before doing the first duplication of the db, and then apply the changes that happen after that in the admin interface of both sites at the same time...

Principal Consultant International Business
Member of the Community Project Board

Russell Michell

Tuesday 26 August 2008 5:45:40 pm

Thanks for your reply Gaetano,

I re-read my original post, your reply and re-read that SVN article - but I now feel as though using SVN as the tool for this may be overkill because the only point of difference between each instance is only ever going to be content (text, images, uploaded files).

So when I make changes to DEV, it is no problem to wholesale copy them to the document root where PROD is located.

So if the only difference is likely to be in website content, it seems all I need to do is ensure these are left untouched in PROD when a data transfer from DEV to PROD is made. This is why I was asking after the location of an up-to-date ez DB schema and table description so I know which tables to omit in the import.

Thanks for your reply anyway, it has made me think a little more about it :-)

Cheers,
Russ

Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom

Believe nothing, consider everything.

eZ debug

Timing: Jan 19 2025 02:17:57
Script start
Timing: Jan 19 2025 02:17:57
Module start 'content'
Timing: Jan 19 2025 02:17:59
Module end 'content'
Timing: Jan 19 2025 02:17:59
Script end

Main resources:

Total runtime1.3365 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.0781180.8203
Module start 'content' 0.00731.1614 769.8984558.1953
Module end 'content' 1.16870.1678 1,328.0938336.7500
Script end 1.3365  1,664.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.2835210.0002
Check MTime0.00140.1081210.0001
Mysql Total
Database connection0.00080.060410.0008
Mysqli_queries1.258994.18981940.0065
Looping result0.00200.15021920.0000
Template Total1.297097.020.6485
Template load0.00180.136120.0009
Template processing1.295196.904020.6476
Template load and register function0.00010.009610.0001
states
state_id_array0.00190.139010.0019
state_identifier_array0.00110.081220.0005
Override
Cache load0.00150.1127330.0000
Sytem overhead
Fetch class attribute can translate value0.00170.124730.0006
Fetch class attribute name0.00100.071850.0002
XML
Image XML parsing0.00140.104030.0005
class_abstraction
Instantiating content class attribute0.00000.000860.0000
General
dbfile0.00360.2711330.0001
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs