Changes between Version 49 and Version 50 of WikiStart


Ignore:
Timestamp:
08/15/10 20:44:12 (9 years ago)
Author:
gracinet
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v49 v50  
    1616 * [http://lists.nuxeo.com/mailman/listinfo/cps-users-fr CPS-Users-FR] -- Discussion and community support list for CPS users (French) 
    1717 
    18 === Instructions to prepare a development version of CPS === 
     18== Instructions to prepare a development version of CPS == 
    1919 
    2020CPS is a set of Zope 2 products. each one being its own mercurial repository. 
     
    2323This tool can actually be used to manage simultaneously any "bundle" of mercurial repositories.  
    2424It's designed to replace and extend the what can be done with the ```svn:externals``` Subversion property. 
     25 
     26CPS comes as three standard bundles which are themselves subdirectories of [http://hg.cps-cms.org/CPS/bundles a single repository]: 
     27 
     28 * CPS-3-base - the common set of products that almost all real world applications extend. CPSDefault is on top of the dependence hierarchy. 
     29 * CPS-3 - CPS-3-base, together with the most common products outside of CPS-3-base 
     30 * CPS-3-full - the full set of officially maintained components 
     31 
     32All instructions and scripts mentioned on this page are meant for Unix-like systems and wouldn't work on Windows systems. 
     33 
     34 
     35=== Automated process === 
     36 
     37As of #2206, CPS comes with a script that creates a Zope instance, sets up its Products directory as a HgBundler bundle and creates a CPS portal in it.  
     38 
     39Prerequisites: 
     40 
     41 * all regular CPS dependencies 
     42 * a working ```hgbundler``` on your path 
     43 
     44Now, grab CPSUtil, extract ```mkcpsdevinstance``` and read the options list. 
     45{{{ 
     46   $ hg clone http://hg.cps-cms.org/CPS/products/CPSUtil 
     47   $ cp CPSUtil/bin/mkcpsdevinstance . 
     48   $ ./mkcpsdevinstance --help 
     49}}} 
     50 
     51To create a CPS-3-full instance in ```/var/opt```: 
     52{{{ 
     53   $ ./mkcpsdevinstance --zope-bin=/opt/Zope-2.9/bin /var/opt/cps-3-full-dev  
     54}}} 
     55 
     56The bundle URL for CPS-3-full is just the default value, one can get CPS-3-base by changing it: 
     57{{{ 
     58   $ ./mkcpsdevinstance -b http://hg.cps-cms.org/CPS/bundles?subpath=CPS-3-base --zope-bin=/opt/Zope-2.9/bin /var/opt/cps-3-base-dev  
     59}}} 
     60 
     61One can use bundle branches as well, or custom bundles: 
     62{{{ 
     63./mkcpsdevinstance -b http://hg.cps-cms.org/CPS/bundles?subpath=CPS-3-full&branch=future-3.5.2 --zope-bin=/opt/Zope-2.9/bin /var/opt/cps-3-future-dev  
     64./mkcpsdevinstance -b ssh://me@myproject.example.com/my_bundle --zope-bin=/opt/Zope-2.9/bin /var/opt/myproject-dev 
     65}}} 
     66 
     67Note that the ```subpath``` and ```branch``` parameters are specific of this script, they act as modifiers on what is otherwise a regular Mercurial URL. 
     68 
     69 
     70=== Manual process, from scratch === 
    2571 
    2672Here are the steps to get the CPS-3-full distribution with ```hgbundler``` on a Unix-like system. 
     
    3985 
    4086Now all you have to do is to move CPS-3-full as the Products of a Zope instance, or better, to make a symbolic link. 
    41 You'll notice also that there are currently three sets of bundles : 
    4287 
    43  * CPS-3-base - the common set of products that almost all real world applications extend. CPSDefault is on top of the dependence hierarchy. 
    44  * CPS-3 - CPS-3-base, together with the most common products outside of CPS-3-base 
    45  * CPS-3-full - the full set of officially maintained components 
    4688 
    4789== Wiki Starting Points ==