Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
888831d5
Commit
888831d5
authored
Jun 24, 2010
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation tweaks
parent
99c5ca57
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
36 deletions
+27
-36
doc/DEBUGGING.rst
doc/DEBUGGING.rst
+14
-23
doc/INSTALL-buildout.rst
doc/INSTALL-buildout.rst
+6
-6
doc/INSTALL.rst
doc/INSTALL.rst
+0
-1
doc/SETUID.rst
doc/SETUID.rst
+1
-1
doc/conf.py
doc/conf.py
+1
-1
doc/operation.rst
doc/operation.rst
+5
-4
No files found.
doc/DEBUGGING.rst
View file @
888831d5
Running Zope in Debug Mode
==========================
If you wish to run Zope in debug mode, set the 'debug-mode'
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.
A utility known as 'zopectl' is installed into generated instance homes.
- The Z_DEBUG_MODE environment variable gets set, which causes
behavioral changes to Zope appropriate for software development.
See the configuration file description of 'debug-mode' for more
information.
If you wish to run Zope in debug mode, run zopectl in foreground mode::
Using 'zopectl debug'
---------------------
$ bin/zopectl fg
A utility known as 'zopectl' is installed into generated instance homes.
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 command line. The 'top-level' Zope object (the root folder) will
be bound to the name 'app' within the interpreter. You can then use
normal Python method calls against app and use the Python interpreter
normally to inspect results::
You can also use it to inspect a Zope instance's running state via an
interactive Python interpreter by passing zopectl the 'debug' parameter on the
command line.
The 'top-level' Zope object (the root folder) will be bound to the name 'app'
within the interpreter. You can then use normal Python method calls against app
and use the Python interpreter normally to inspect results::
[chrism@james Trunk]
$ bin/zopectl debug
Starting debugger (the name "app" is bound to the top-level Zope object)
>>> app.objectId
s()
['acl_users', 'Control_Panel', 'temp_folder', 'browser_id_manager', 'session_data_manager', 'error_log', 'index_html', 'standard_error_message']
>>>
$ bin/zopectl debug
Starting debugger (the name "app" is bound to the top-level Zope object)
>>> app.key
s()
['acl_users', 'Control_Panel', 'temp_folder', 'browser_id_manager', 'session_data_manager', 'error_log', 'index_html', 'standard_error_message']
>>>
doc/INSTALL-buildout.rst
View file @
888831d5
...
...
@@ -3,7 +3,7 @@ Installing and Zope with ``zc.buildout``
.. highlight:: bash
This document descibes how to get going with Zope using ``zc.buildout``.
This document desc
r
ibes how to get going with Zope using ``zc.buildout``.
About ``zc.buildout``
...
...
@@ -18,7 +18,7 @@ Prerequisites
-------------
In order to use Zope, you must have the following pre-requisites
available:
available:
- A supported version of Python, including the development support if
installed from system-level packages. Supported versions include:
...
...
@@ -80,7 +80,7 @@ Zope server process. The instance home is created using the
$ bin/mkzopeinstance
You can specify the Python interpreter to use for the instance
explicitly::
explicitly::
$ bin/mkzopeinstance --python=$PWD/bin/zopepy
...
...
@@ -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.
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.
- Fetch the buildout bootstrap script into the environment.
...
...
@@ -116,7 +116,7 @@ This procedure involves the following steps:
::
[buildout]
parts = instance
parts = instance
extends = http://download.zope.org/Zope2/index/<Zope version>/versions.cfg
[instance]
...
...
@@ -145,7 +145,7 @@ used.
%define INSTANCE <path to your instance directory>
python $INSTANCE/bin/py[.exe on Windows]
instancehome $INSTANCE
A fully-annotated sample can be found in the Zope2 egg::
...
...
doc/INSTALL.rst
View file @
888831d5
...
...
@@ -75,4 +75,3 @@ command-line options, run the script with the ``--help`` option::
The traditional "inplace" build is no longer supported. Always use
``mkzopeinstance`` to create instances outside the virtualenv environment.
doc/SETUID.rst
View file @
888831d5
...
...
@@ -6,7 +6,7 @@ Zope effective user support
Apache, Squid or Varnish. In this case, you do not need to run
or install Zope with root privileges, since the reverse proxy
will bind to port 80 and proxy back all request to Zope running
on an unprivile
d
ged port.
on an unprivileged port.
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
...
...
doc/conf.py
View file @
888831d5
...
...
@@ -51,7 +51,7 @@ copyright = u'2009-2010, The Zope Developers Community'
# The short X.Y version.
version
=
'2.13'
# 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
# for a list of supported languages.
...
...
doc/operation.rst
View file @
888831d5
...
...
@@ -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-
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
...
Config file: /tmp/other.conf
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
8080 and 8021 respectively. You can change the ports used by
editing ./etc/zope.conf appropriately.
...
...
@@ -36,7 +36,7 @@ The section in the configuration file looks like this::
# force-connection-close on
</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.
After making any changes to the configuration file, you need to restart any
...
...
@@ -52,7 +52,8 @@ command (short for ``foreground``)::
$ /path/to/zope/instance/bin/zopectl fg
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment