Commit 888831d5 authored by Hanno Schlichting's avatar Hanno Schlichting

Documentation tweaks

parent 99c5ca57
Running Zope in Debug Mode Running Zope in Debug Mode
========================== ==========================
If you wish to run Zope in debug mode, set the 'debug-mode' A utility known as 'zopectl' is installed into generated instance homes.
configuration file parameter to 'on' (this is the default). This
will have the following effects:
- On UNIX, Zope will not detach from the controlling terminal.
- The Z_DEBUG_MODE environment variable gets set, which causes If you wish to run Zope in debug mode, run zopectl in foreground mode::
behavioral changes to Zope appropriate for software development.
See the configuration file description of 'debug-mode' for more
information.
Using 'zopectl debug' $ bin/zopectl fg
---------------------
A utility known as 'zopectl' is installed into generated instance homes. You can also use it to inspect a Zope instance's running state via an
You can use it to inspect a Zope instance's running state via an interactive Python interpreter by passing zopectl the 'debug' parameter on the
interactive Python interpreter by passing zopectl the 'debug' parameter command line.
on the command line. The 'top-level' Zope object (the root folder) will The 'top-level' Zope object (the root folder) will be bound to the name 'app'
be bound to the name 'app' within the interpreter. You can then use within the interpreter. You can then use normal Python method calls against app
normal Python method calls against app and use the Python interpreter and use the Python interpreter normally to inspect results::
normally to inspect results::
[chrism@james Trunk]$ bin/zopectl debug $ bin/zopectl debug
Starting debugger (the name "app" is bound to the top-level Zope object) Starting debugger (the name "app" is bound to the top-level Zope object)
>>> app.objectIds() >>> app.keys()
['acl_users', 'Control_Panel', 'temp_folder', 'browser_id_manager', 'session_data_manager', 'error_log', 'index_html', 'standard_error_message'] ['acl_users', 'Control_Panel', 'temp_folder', 'browser_id_manager', 'session_data_manager', 'error_log', 'index_html', 'standard_error_message']
>>> >>>
...@@ -3,7 +3,7 @@ Installing and Zope with ``zc.buildout`` ...@@ -3,7 +3,7 @@ Installing and Zope with ``zc.buildout``
.. highlight:: bash .. highlight:: bash
This document descibes how to get going with Zope using ``zc.buildout``. This document describes how to get going with Zope using ``zc.buildout``.
About ``zc.buildout`` About ``zc.buildout``
...@@ -18,7 +18,7 @@ Prerequisites ...@@ -18,7 +18,7 @@ Prerequisites
------------- -------------
In order to use Zope, you must have the following pre-requisites In order to use Zope, you must have the following pre-requisites
available: available:
- A supported version of Python, including the development support if - A supported version of Python, including the development support if
installed from system-level packages. Supported versions include: installed from system-level packages. Supported versions include:
...@@ -80,7 +80,7 @@ Zope server process. The instance home is created using the ...@@ -80,7 +80,7 @@ Zope server process. The instance home is created using the
$ bin/mkzopeinstance $ bin/mkzopeinstance
You can specify the Python interpreter to use for the instance You can specify the Python interpreter to use for the instance
explicitly:: explicitly::
$ bin/mkzopeinstance --python=$PWD/bin/zopepy $ bin/mkzopeinstance --python=$PWD/bin/zopepy
...@@ -103,7 +103,7 @@ to use ``zc.buildout`` to create a self-contained environment, containing ...@@ -103,7 +103,7 @@ to use ``zc.buildout`` to create a self-contained environment, containing
both the Zope software and the configuration and data for your server. both the Zope software and the configuration and data for your server.
This procedure involves the following steps: This procedure involves the following steps:
- Create the home directory for the buildout, including - Create the home directory for the buildout, including
``etc``, ``log`` and ``var`` subdirectories. ``etc``, ``log`` and ``var`` subdirectories.
- Fetch the buildout bootstrap script into the environment. - Fetch the buildout bootstrap script into the environment.
...@@ -116,7 +116,7 @@ This procedure involves the following steps: ...@@ -116,7 +116,7 @@ This procedure involves the following steps:
:: ::
[buildout] [buildout]
parts = instance parts = instance
extends = http://download.zope.org/Zope2/index/<Zope version>/versions.cfg extends = http://download.zope.org/Zope2/index/<Zope version>/versions.cfg
[instance] [instance]
...@@ -145,7 +145,7 @@ used. ...@@ -145,7 +145,7 @@ used.
%define INSTANCE <path to your instance directory> %define INSTANCE <path to your instance directory>
python $INSTANCE/bin/py[.exe on Windows] python $INSTANCE/bin/py[.exe on Windows]
instancehome $INSTANCE instancehome $INSTANCE
A fully-annotated sample can be found in the Zope2 egg:: A fully-annotated sample can be found in the Zope2 egg::
......
...@@ -75,4 +75,3 @@ command-line options, run the script with the ``--help`` option:: ...@@ -75,4 +75,3 @@ command-line options, run the script with the ``--help`` option::
The traditional "inplace" build is no longer supported. Always use The traditional "inplace" build is no longer supported. Always use
``mkzopeinstance`` to create instances outside the virtualenv environment. ``mkzopeinstance`` to create instances outside the virtualenv environment.
...@@ -6,7 +6,7 @@ Zope effective user support ...@@ -6,7 +6,7 @@ Zope effective user support
Apache, Squid or Varnish. In this case, you do not need to run Apache, Squid or Varnish. In this case, you do not need to run
or install Zope with root privileges, since the reverse proxy or install Zope with root privileges, since the reverse proxy
will bind to port 80 and proxy back all request to Zope running will bind to port 80 and proxy back all request to Zope running
on an unpriviledged port. on an unprivileged port.
Zope can bind its network service to low ports such as 21 (FTP) and Zope can bind its network service to low ports such as 21 (FTP) and
80 (HTTP). In order to bind to low ports, Zope must be started as 80 (HTTP). In order to bind to low ports, Zope must be started as
......
...@@ -51,7 +51,7 @@ copyright = u'2009-2010, The Zope Developers Community' ...@@ -51,7 +51,7 @@ copyright = u'2009-2010, The Zope Developers Community'
# The short X.Y version. # The short X.Y version.
version = '2.13' version = '2.13'
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = '2.13.0dev' release = '2.13'
# The language for content autogenerated by Sphinx. Refer to documentation # The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages. # for a list of supported languages.
......
...@@ -16,14 +16,14 @@ Your instance's configuration is defined in its ``etc/zope.conf`` file. ...@@ -16,14 +16,14 @@ Your instance's configuration is defined in its ``etc/zope.conf`` file.
Unless you created the file manually, that file should contain fully- Unless you created the file manually, that file should contain fully-
annotated examples of each directive. annotated examples of each directive.
You can also pass an explicit configuration file on the commandline:: You can also pass an explicit configuration file on the command line::
$ /path/to/zope/instance/bin/zopectl -c /tmp/other.conf show $ /path/to/zope/instance/bin/zopectl -c /tmp/other.conf show
... ...
Config file: /tmp/other.conf Config file: /tmp/other.conf
When starting Zope, if you see errors indicating that an address is in When starting Zope, if you see errors indicating that an address is in
use, then you may have to change the ports Zope uses for HTTP or FTP. use, then you may have to change the ports Zope uses for HTTP or FTP.
The default HTTP and FTP ports used by Zope are The default HTTP and FTP ports used by Zope are
8080 and 8021 respectively. You can change the ports used by 8080 and 8021 respectively. You can change the ports used by
editing ./etc/zope.conf appropriately. editing ./etc/zope.conf appropriately.
...@@ -36,7 +36,7 @@ The section in the configuration file looks like this:: ...@@ -36,7 +36,7 @@ The section in the configuration file looks like this::
# force-connection-close on # force-connection-close on
</http-server> </http-server>
The address can just be a port number as shown, or a host:port The address can just be a port number as shown, or a host:port
pair to bind only to a specific interface. pair to bind only to a specific interface.
After making any changes to the configuration file, you need to restart any After making any changes to the configuration file, you need to restart any
...@@ -52,7 +52,8 @@ command (short for ``foreground``):: ...@@ -52,7 +52,8 @@ command (short for ``foreground``)::
$ /path/to/zope/instance/bin/zopectl fg $ /path/to/zope/instance/bin/zopectl fg
In this mode, Zope emits its log messages to the console, and does not In this mode, Zope emits its log messages to the console, and does not
detach from the terminal. detach from the terminal. This also automatically enables debug-mode. Do
not use this for production servers.
Running Zope as a Daemon Running Zope as a Daemon
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment