Forums / Setup & design / compiling multiple sites

compiling multiple sites

Author Message

Marko Žmak

Wednesday 04 May 2005 4:21:10 am

When I compile my site using bin/php/eztc.php only standard and default site are compiled. The default site is the one that is set by:

DefaultAccess=

in:

settings/override/site.ini.append.php

How can I compile other siteaccesses that I have on my eZ installation?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

kracker (the)

Wednesday 04 May 2005 5:09:18 am

Yes!

The eZ template compiler supports a wide range of settings and options via the command line.

 ./bin/linux/php-cli bin/php/eztc.php --help
Usage: bin/php/eztc.php [OPTION]...
eZ publish Template Compiler

./bin/php/eztc.php -snews --www-dir='/mypath' --index-file='/index.php' --access-path='news'

General options:
  -h,--help        display this help and exit
  -q,--quiet       do not give any output except when errors occur
  -s,--siteaccess  selected siteaccess for operations,
                     if not specified default siteaccess is used
  -d,--debug...    display debug output at end of execution,
                     the following debug items can be controlled:
                     all, accumulator, include, timing, error, warning, debug or notice.
  -c,--colors      display output using ANSI colors (default)
  --no-colors      do not use ANSI coloring
  --logfiles       create log files
  --no-logfiles    do not create log files (default)
  -v,--verbose...  display more information,
                     used multiple times will increase amount of information

Options:
  --compile-directory=VALUE  Where to place compiled files,
                               default is template/compiled in current cache directory
  --www-dir=VALUE            The part before the index.php in your URL, you should supply this if you are running in non-virtualhost mode
  --index-file=VALUE         The name of your index.php if you are running in non-virtualhost mode
  --access-path=VALUE        Extra access path
  --force                    Force compilation of template whether it has changed or not
  --full-url                 Makes sure generated urls have http:// in them (i.e. global), used mainly by sites that include the eZ publish HTML (e.g payment gateways)
  --no-full-url              Makes sure generated urls are relative to the site. (default)

Cheers,
//kracker

Trigun : Episode 26

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

kracker (the)

Wednesday 04 May 2005 5:48:43 am

Also remember,

To have your design templates compiled at the same time as the admin and standard designs.

All you need to do is add them into your site.ini override aka: override/site.ini.append.php

[DesignSettings]
AdditionalSiteDesignList[]
AdditionalSiteDesignList[]=his_site
AdditionalSiteDesignList[]=her_site
AdditionalSiteDesignList[]=family_site

Cheers,
//kracker

South Park : Lil Crime Stoppers

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Marko Žmak

Wednesday 04 May 2005 3:31:57 pm

Thanks a lot. This two post explain everything what I needed. Thanks!

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

eZ debug

Timing: Jan 20 2025 21:02:52
Script start
Timing: Jan 20 2025 21:02:52
Module start 'content'
Timing: Jan 20 2025 21:02:52
Module end 'content'
Timing: Jan 20 2025 21:02:52
Script end

Main resources:

Total runtime0.1790 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.0106 587.7109180.8359
Module start 'content' 0.01060.0068 768.546997.9922
Module end 'content' 0.01730.1615 866.5391526.0234
Script end 0.1788  1,392.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00402.2516200.0002
Check MTime0.00160.8838200.0001
Mysql Total
Database connection0.00160.907010.0016
Mysqli_queries0.117165.43601410.0008
Looping result0.00160.88341390.0000
Template Total0.161190.010.1611
Template load0.00090.478810.0009
Template processing0.160289.524610.1602
Override
Cache load0.00060.320110.0006
Sytem overhead
Fetch class attribute can translate value0.00100.532010.0010
XML
Image XML parsing0.00030.145910.0003
General
dbfile0.01186.6072200.0006
String conversion0.00000.006730.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.0003 secs