BPCE_LIVRAISON:how to deploy your EZpublish websitewith one or several third party companies                 Alexandre SEB...
Agenda1.   Introduction2.   Requirements3.   Solution : BPCE_LIVRAISON4.   Create a patch5.   Deploy a patch6.   To improv...
Introduction Segmented Network IT facilities management EzPublish Website Complex network schema      eZ CONFERENCE London...
Introduction Who has access to production server Who has someone in production team who know how work ezpublish Who has al...
Requirements Linux RHEL  o   Because of the “kernel” of this extension :           svn diff --config-dir /etc/subversion -...
Solution : BPCE_LIVRAISON Extension ezpublish  o   Standard installation  o   Directory to create in each directory  o   C...
Solution : BPCE_LIVRAISON 2 steps deployment:  o   Create a patch.  o   Deploy it.        eZ CONFERENCE London 2011 – 16/0...
Create a patch : choose the begin tag     eZ CONFERENCE London 2011 – 16/06/2011
Create a patch : choose the end tag     eZ CONFERENCE London 2011 – 16/06/2011
Create a patch : choose the environment todeliver     eZ CONFERENCE London 2011 – 16/06/2011
Create a patch : add SQL to insert into theeZpublish Database      eZ CONFERENCE London 2011 – 16/06/2011
Create a patch : add SQL to insert into theeZpublish cluster Database      eZ CONFERENCE London 2011 – 16/06/2011
Create a patch : add comment for history.     eZ CONFERENCE London 2011 – 16/06/2011
Create a patch : Build in progress      eZ CONFERENCE London 2011 – 16/06/2011
Create a patch : patch created, you can seecreation log.     eZ CONFERENCE London 2011 – 16/06/2011
Create a patch : Go to the detail of the patch Download It      eZ CONFERENCE London 2011 – 16/06/2011
Time to deploy …                                  Be careful :                      you have to test your deployment      ...
Deploy a patch Copy the patch in the patch directory in the environment to deploy Go in ssh in the directory Type “sh name...
Deploy a patch : the log================================================================                Beginning of the d...
To improve Replace sql access by ezpersistent object. Add Multi-language support. Improve the cache clearing. Add support ...
Thanks !Questions ?   Alexandre SEBBANE   Twitter : @alexsebbane   Blog : http://www.sebbane.org/blog/
Upcoming SlideShare
Loading in …5
×

Bpce livraison

1,504 views

Published on

BPCE_LIVRAISON: how to deploy an eZPublish website with one or several third party companies

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,504
On SlideShare
0
From Embeds
0
Number of Embeds
348
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Bpce livraison

  1. 1. BPCE_LIVRAISON:how to deploy your EZpublish websitewith one or several third party companies Alexandre SEBBANE, Internet project manager & Internet architect, BPCE eZ CONFERENCE London 2011
  2. 2. Agenda1. Introduction2. Requirements3. Solution : BPCE_LIVRAISON4. Create a patch5. Deploy a patch6. To improve7. Questions/Answers eZ CONFERENCE London 2011 – 16/06/2011
  3. 3. Introduction Segmented Network IT facilities management EzPublish Website Complex network schema eZ CONFERENCE London 2011 – 16/06/2011
  4. 4. Introduction Who has access to production server Who has someone in production team who know how work ezpublish Who has already interve in production environment in order to correct one mistake during the deployment of a patch ?There is many mistake who can happenedso that why we createBPCE_LIVRAISONAn Extension to package patch to deployezpublish website. eZ CONFERENCE London 2011 – 16/06/2011
  5. 5. Requirements Linux RHEL o Because of the “kernel” of this extension : svn diff --config-dir /etc/subversion --no-diff-deleted --username $USERNAME - -password $PASSWORD --summarize $SVN_SERVER/$SVN_MODULE/tags/$BASE_RELEASE $SVN_SERVER/$SVN_MODULE/tags/$LIVR_RELEASE | sed -e s/^(w{1}).*http.*/tags/[^/]*/(.*)$/2 1/m | awk -vSVN_URL="$SVN_SERVER/$SVN_MODULE/tags/$LIVR_RELEASE/" - vREP_CIBLE="$REP_CIBLE" -vUSERNAME="$USERNAME" - vPASSWORD="$PASSWORD" -vLOG="$LOG" -vDEL_FILES="$DEL_FILES" SVN for revision control system o All project is in SVN except the var “directory” Noveniniupdate dependency o To apply ezpublish configuration on deployment environment. eZ CONFERENCE London 2011 – 16/06/2011
  6. 6. Solution : BPCE_LIVRAISON Extension ezpublish o Standard installation o Directory to create in each directory o Configuration [PackagingSettings] # -- List of the differents environment # -- Patch to filesystem eZPublish for each environment # -- Parameter to Server SVN # -- Path where patch will be build # -- Excludes List for each environment # -- Delfiles filename # -- Log path # -- batch « DIFF SVN » patch # -- PHP binary path # -- Path of patch directory model [DeploiementSettings] # -- Acces au filesystem eZPublish pour chaque environnement # -- Repertoire de stockage de la sauvegarde filesystem pour chaque environnement # -- Acces au fichier de LOG pour chaque environnement # -- Owner des fichiers installes pour chaque environnement # -- PHP binary path # -- Droits des fichiers installes # -- Chemin de stockage des TAR de livraisons eZ CONFERENCE London 2011 – 16/06/2011
  7. 7. Solution : BPCE_LIVRAISON 2 steps deployment: o Create a patch. o Deploy it. eZ CONFERENCE London 2011 – 16/06/2011
  8. 8. Create a patch : choose the begin tag eZ CONFERENCE London 2011 – 16/06/2011
  9. 9. Create a patch : choose the end tag eZ CONFERENCE London 2011 – 16/06/2011
  10. 10. Create a patch : choose the environment todeliver eZ CONFERENCE London 2011 – 16/06/2011
  11. 11. Create a patch : add SQL to insert into theeZpublish Database eZ CONFERENCE London 2011 – 16/06/2011
  12. 12. Create a patch : add SQL to insert into theeZpublish cluster Database eZ CONFERENCE London 2011 – 16/06/2011
  13. 13. Create a patch : add comment for history. eZ CONFERENCE London 2011 – 16/06/2011
  14. 14. Create a patch : Build in progress eZ CONFERENCE London 2011 – 16/06/2011
  15. 15. Create a patch : patch created, you can seecreation log. eZ CONFERENCE London 2011 – 16/06/2011
  16. 16. Create a patch : Go to the detail of the patch Download It eZ CONFERENCE London 2011 – 16/06/2011
  17. 17. Time to deploy … Be careful : you have to test your deployment in a preproduction environment to verify the bugs are gone. eZ CONFERENCE London 2011 – 16/06/2011
  18. 18. Deploy a patch Copy the patch in the patch directory in the environment to deploy Go in ssh in the directory Type “sh nameofthepatch.bin” The patch is beginning deployment. o Backup o Deployment of the patch. o Verify and Arrange the file rights o Delete of deleted files. o Regenerates autoloads. o Regenerate configuration files with noveniniupdate. o Clear the cache. Patch is deploy. eZ CONFERENCE London 2011 – 16/06/2011
  19. 19. Deploy a patch : the log================================================================ Beginning of the deployment ================================================================-- Begin the backup -- -- Creating directory /data/www/ponant-int/save/4.2.0.86 -- -- Files backup-- End of the backup ---- Deployment -- -- Extract files -- -- Update rights -- -- Copy files -- -- Delete the outdated files ---- Regenerates autoloads file ---- Update version file ---- Update of the configuration --============================================================== End of the deployment ============================================================== eZ CONFERENCE London 2011 – 16/06/2011
  20. 20. To improve Replace sql access by ezpersistent object. Add Multi-language support. Improve the cache clearing. Add support of others revision control system. eZ CONFERENCE London 2011 – 16/06/2011
  21. 21. Thanks !Questions ? Alexandre SEBBANE Twitter : @alexsebbane Blog : http://www.sebbane.org/blog/

×