best practice for eZ Publish upgrade when using SVN

Author Message

Greg McAvoy-Jensen

Friday 12 September 2008 8:54:23 pm

If one is using Subversion to deploy to the testing/staging server and production server (as well as development machines), what is the best step-by-step process for upgrading eZ Publish? Assume we're using the directory structure of the "myproject" example in Jérôme Renard's article (http://ez.no/developer/articles/using_subversion_with_ez_publish/common_problems_and_solutions) (but without having the database under version control).

My initial thought would be:

1. Backup.
2. Create a fresh installation of the new eZ Publish version in a directory called ezpublish-x.y.z.
3. Copy site-specific to new installation.
4. svn import ezpublish-x.y.z svn://example.com/path-to-repository/trunk/ezpublish-x.y.z.
5. Each developer can then svn checkout the new version, point it at their database, run the database upgrade script, and point Apache to new the new directory.
6. svn copy svn://example.com/path-to-repository/trunk/ezpublish-x.y.z svn://example.com/path-to-repository/branches/testing/ezpublish-x.y.z.
7. On the testing server, svn checkout the new version, point it at the testing database, lock down the database, copy over the old var directory (and needed ini files), run the database upgrade script, point Apache to the new directory, and unlock the database.
8. On the production server, svn checkout the new version, point it at the testing database, lock down the database, copy over the old var directory (and needed ini files), run the database upgrade script, point Apache to the new directory, and unlock the database.

Is this the most efficient way to handle it? What improvements could be made? On a live server where one does not have root access and relies on the host system administrators to point Apache to the new directory, is it best to have a sym link (link www to ezpublish-x.y.z) so we can re-point it ourselves (assuming following sym links is allowed)?

Thank you for your input.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 04:29:43
Script start
Timing: Jan 19 2025 04:29:43
Module start 'layout'
Timing: Jan 19 2025 04:29:43
Module start 'content'
Timing: Jan 19 2025 04:29:44
Module end 'content'
Timing: Jan 19 2025 04:29:44
Script end

Main resources:

Total runtime0.4936 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 590.3984152.6406
Module start 'layout' 0.00440.0021 743.039139.4922
Module start 'content' 0.00650.4859 782.5313475.9297
Module end 'content' 0.49230.0012 1,258.46098.1250
Script end 0.4936  1,266.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00260.5181160.0002
Check MTime0.00110.2328160.0001
Mysql Total
Database connection0.00080.158810.0008
Mysqli_queries0.459593.0911460.0100
Looping result0.00050.0987440.0000
Template Total0.469895.220.2349
Template load0.00160.326420.0008
Template processing0.468294.856820.2341
Template load and register function0.00010.020510.0001
states
state_id_array0.00100.207910.0010
state_identifier_array0.00050.104320.0003
Override
Cache load0.00130.2719160.0001
Sytem overhead
Fetch class attribute can translate value0.00070.136610.0007
Fetch class attribute name0.00090.190220.0005
XML
Image XML parsing0.00060.129610.0006
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00080.1652180.0000
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs