Forums / Install & configuration / Migrating from dev to prod

Migrating from dev to prod

Author Message

Daniel Spring

Friday 09 July 2010 8:19:17 am

Hi, eZ Publish Community. I'm interested in using eZ Publish as an alternative to a CMS I'm currently running. I will frequently make changes in a development environment and push my changes into a production instance of eZ Publish. Is anyone currently doing this and if so, what is your experience? Is there a best way? Also, any tips/tricks/lessons learned would be great. Thank you!

Jérôme Vieilledent

Friday 09 July 2010 8:26:05 am

Hi Daniel

This is a recurrent question. There are actually 2 issues to fix :

  1. Pushing your files into production
  2. Adapting your config files to production

For first point, you might consider a simple scripting engine, such as Apache ANT

For second point, take a look at NovenINIUpdate ;)

You can also take a look at the presentation I made at the last eZ Conference in Berlin.

Yannick Komotir

Friday 09 July 2010 8:57:26 am

Hi,

you can also see here http://www.ez-france.org/Verifier-votre-projet-eZ-Publish for some tips and tricks for improving perfomances in your production environnement.

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

Gaetano Giunta

Friday 09 July 2010 9:32:39 am

One way of keeping different configuartions for dev/test/prod environments I find myself using a lot is simply to define separate siteaccesses for them, eg frontsa_dev, frontsa_prod, adminsa_dev, adminsa_prod.

Cons: you will end up with quite a few duplicated settings files

Pros: no need to use deployment scripts to change your dev settings to prod; easier to check any differents between the two config sets

Another tip: use a single svn repo where you have all of your code versioned, starting from ezp root, and including all settings and extensions

Cons: makes the svn repo slightly bigger; unruly developers might end up committing changes to ezp kernel code

Pros: setting up a new dev workstation / test server amounts to a single "svn checkout"; no need to mess with svn:externals or complex setups

Principal Consultant International Business
Member of the Community Project Board

Daniel Spring

Friday 09 July 2010 9:46:18 am

Excellent feedback from you all. I'll mine the literature you guys provided and note the tips/suggestions you provided, Gaetano. Thank you.

Jérémy Poulain

Monday 12 July 2010 3:03:01 pm

Using different siteaccess can quickly become tricky, dangerous and hard to maintain to say the least.

If you have one site, you may manage three or four different siteaccess, but if you have five (or more) website it's just not possible...

But you can try with this http://issues.ez.no/IssueView.php?Id=16205

We deployed it few weeks ago, and it becomes a lot easier to maintain.

eZ debug

Timing: Jan 18 2025 02:03:34
Script start
Timing: Jan 18 2025 02:03:34
Module start 'content'
Timing: Jan 18 2025 02:03:35
Module end 'content'
Timing: Jan 18 2025 02:03:36
Script end

Main resources:

Total runtime1.6431 sec
Peak memory usage4,096.0000 KB
Database Queries210

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 589.1797182.4219
Module start 'content' 0.00811.4695 771.6016702.8047
Module end 'content' 1.47760.1654 1,474.4063337.0859
Script end 1.6430  1,811.4922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.2363210.0002
Check MTime0.00150.0913210.0001
Mysql Total
Database connection0.00060.038210.0006
Mysqli_queries1.544593.99462100.0074
Looping result0.00240.14762080.0000
Template Total1.600497.420.8002
Template load0.00210.126420.0010
Template processing1.598397.269920.7991
Template load and register function0.00030.015910.0003
states
state_id_array0.00180.107710.0018
state_identifier_array0.00180.107720.0009
Override
Cache load0.00180.1069360.0000
Sytem overhead
Fetch class attribute can translate value0.00190.114960.0003
Fetch class attribute name0.00110.0675100.0001
XML
Image XML parsing0.00400.242860.0007
class_abstraction
Instantiating content class attribute0.00000.0011100.0000
General
dbfile0.01180.7156450.0003
String conversion0.00000.000530.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ol.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ol.tplEdit templateOverride template
2content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 8

Time used to render debug report: 0.0002 secs