Forums / General / Industrializing eZ Publish project development

Industrializing eZ Publish project development

Author Message

Jérôme Vieilledent

Sunday 27 June 2010 6:14:37 am

Hi everyone !

As a continuation of my presentation at the eZ Conference 2010 in Berlin, here's a topic where we would talk about the subject.

Feel free to post any question/notice/suggestion !

My slides on Slideshare : http://slidesha.re/cM6Yk2

Peter Rudolfsen

Sunday 27 June 2010 10:48:30 am

Thanks for a nice presentation, really enjoyed it.

I just have one question, do you run the virtual development servers on a dedicated machine, or are they running on each of the developers machines?

Jérôme Vieilledent

Sunday 27 June 2010 2:00:55 pm

You're welcome ! I'm glad you enjoyed it :)

About your question, it mainly depends if the developers are located in the same LAN as the database server. If this is the case, then they can run their VM on their local machine. Otherwise (e.g. working with freelancers, home office...), you'll need a dedicated headless server (meaning with no GUI like regular Virtual Box or VMWare player) hosting the VMs. You can do that with Virtual Box thanks to VBoxHeadless (look "headless" in the manual), or with VMWare ESX.

Peter Rudolfsen

Monday 28 June 2010 1:23:29 am

I'm also looking for a best-practice on how to structure the var-dirs.

We now have all of the var-dir centralized, but that can cause problems with the cache when on different environments. (INI- and template-cache, etc). site.ini says that CacheDir can be set to an absolute path, and then it supposedly won't be appended after the var-dir.

Are you familiar with this challenge?

Jérôme Vieilledent

Monday 28 June 2010 4:21:36 am

I'm not sure I understand your issue...

How can a centralized var dir be a problem ? Can you please precise a bit ?

Peter Rudolfsen

Monday 28 June 2010 11:42:00 pm

The problem was sharing the cache-part of the var-dir between environments. Then you could suddenly get cache from integration or other developers when developing.

But it seems that setting the CacheDir to a local absolute path did the trick.

Jérôme Vieilledent

Tuesday 29 June 2010 4:52:55 am

Actually, is your issue for production or just for development/integration ?

Peter Rudolfsen

Tuesday 29 June 2010 5:25:16 am

Sorry, I should've specified which environments I was talking about.

This issue is only between development and integration, and NOT in production.

Jérôme Vieilledent

Wednesday 30 June 2010 6:04:29 am

Are you in cluster mode ? Do you use the same database for dev/integration ? If so, just consider using 2 separated databases ;)

eZ debug

Timing: Jan 29 2025 13:32:05
Script start
Timing: Jan 29 2025 13:32:05
Module start 'content'
Timing: Jan 29 2025 13:32:05
Module end 'content'
Timing: Jan 29 2025 13:32:05
Script end

Main resources:

Total runtime0.1367 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.0547180.8203
Module start 'content' 0.00590.0052 768.8750101.8047
Module end 'content' 0.01100.1256 870.6797530.0000
Script end 0.1367  1,400.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.4776200.0002
Check MTime0.00141.0556200.0001
Mysql Total
Database connection0.00080.605510.0008
Mysqli_queries0.093268.16401410.0007
Looping result0.00100.71211390.0000
Template Total0.125391.610.1253
Template load0.00080.620210.0008
Template processing0.124591.022310.1245
Override
Cache load0.00060.435010.0006
Sytem overhead
Fetch class attribute can translate value0.00080.588610.0008
XML
Image XML parsing0.00020.156610.0002
General
dbfile0.00886.4183200.0004
String conversion0.00000.004430.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs