git life-cycle, development to production

Author Message

Brendan Pike

Monday 09 August 2010 7:49:02 pm

I'm interested to learn how other developers use git in their working environment. I've recently made the move from svn to git so am in the process of reassessing the best ways to work with code from development to testing and finally live.

Using the git archive command would be an option as would be rsync. I could also just run a git clone in each environment which is probably the best solution with easier ability to individualise each .gitignore per instance.

Also do you generally put the entire ez publish file structure into git for simplicity or do you set-up your ignore file to exclude it?

Love to hear others experiences and suggestions.

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Thiago Campos Viana

Tuesday 10 August 2010 12:42:21 pm

I really don't like github, I think svn+tortoise svn is much more easy to use then github + that beta github windows tool. The only one feature I liked about github is that I can search a repo, fork and edit it online, but when I hade to download a repo to my computer, edit and then upload I have some problems.

I hade several problems trying to create and maintain two or more repo, because when I tried to upload my local files to a repo I got an error, some key problem thing....

Github will be great only if it be as easy to use as svn+tortoise...

About ez publish versioned folders, I think it could be like svn, only extension, settings, and var/yoursite/storage folder, maybe design folder.

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

Thomas Parisot

Tuesday 01 March 2011 6:45:39 am

I'm pretty much interested by this topic too.

I want to store that in a single remote (origin), and fetch updates from the upstream (ezpublish git repo).
What is the best way to do?

Because what I need:

  • adding/modifiying files at the root folder of eZ Publish (custom .gitignore, fabric config files etc.)
  • adding my own extensions, project specific: submodules (same repo with other branches or specific repo) or plain files within extensions/ folder?
  • if possible, not publishing the entire history of the upstream on origin, but only changes from the time the project is initiated

For the last point, I created my project, added origin, added upstream, rebased upstream and commited.
However, once I want to clone, I encounter a git packing error, as I have not commited the past history, but only the current snapshot.

Any clue? Any strategy?

Thanks :-)

Nicolas Pastorino

Tuesday 01 March 2011 7:17:29 am

Hi Thomas,

The draft version of the "How to contribute to eZ Publish using GIT" is linked to from there. The final version should be published in a matter of days.

Also, another application of GIT/github and eZ Publish contribution, int he frame of localization, is presented in the following tutorial : http://share.ez.no/learn/ez-publish/translating-localizing-ez-publish-using-git

Stay tuned for the full version of the former,
I hope this helped,
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Thomas Parisot

Wednesday 02 March 2011 6:43:02 am

"

Hi Thomas,

The draft version of the "How to contribute to eZ Publish using GIT" is linked to from there. The final version should be published in a matter of days.

Also, another application of GIT/github and eZ Publish contribution, int he frame of localization, is presented in the following tutorial : http://share.ez.no/learn/ez-publish/translating-localizing-ez-publish-using-git

Stay tuned for the full version of the former,
I hope this helped,
Cheers,

"

Hello,

thanks for your reply but unfortunately, I can't see how it could help me during my daily dev on my projects.
What I would like is to fetch changes of eZ, like patches, without pushing the whole eZ history on my own remote.

Thanks

Nicolas Pastorino

Wednesday 02 March 2011 2:56:44 pm

"

thanks for your reply but unfortunately, I can't see how it could help me during my daily dev on my projects.
What I would like is to fetch changes of eZ, like patches, without pushing the whole eZ history on my own remote.

"

Hello Thomas,

I will have to leave this question to better GIT experts than i am, i am afraid.

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

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 18 2025 01:58:30
Script start
Timing: Jan 18 2025 01:58:30
Module start 'layout'
Timing: Jan 18 2025 01:58:30
Module start 'content'
Timing: Jan 18 2025 01:58:31
Module end 'content'
Timing: Jan 18 2025 01:58:31
Script end

Main resources:

Total runtime1.1949 sec
Peak memory usage4,096.0000 KB
Database Queries72

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.1641152.6406
Module start 'layout' 0.00640.0028 741.804739.4766
Module start 'content' 0.00931.1842 781.2813677.0469
Module end 'content' 1.19350.0014 1,458.328120.1250
Script end 1.1949  1,478.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2849160.0002
Check MTime0.00150.1245160.0001
Mysql Total
Database connection0.00080.069910.0008
Mysqli_queries1.119593.6893720.0155
Looping result0.00080.0685700.0000
Template Total1.159497.020.5797
Template load0.00250.211420.0013
Template processing1.156896.811920.5784
Template load and register function0.00010.012310.0001
states
state_id_array0.00100.084010.0010
state_identifier_array0.00160.135020.0008
Override
Cache load0.00220.1813580.0000
Sytem overhead
Fetch class attribute can translate value0.00050.043040.0001
Fetch class attribute name0.00140.117590.0002
XML
Image XML parsing0.00290.243340.0007
class_abstraction
Instantiating content class attribute0.00000.0020110.0000
General
dbfile0.00370.3123280.0001
String conversion0.00000.000640.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
2content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
2content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 40
 Number of unique templates used: 10

Time used to render debug report: 0.0002 secs