Skip to content

Commit

Permalink
updating docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tschorr committed Oct 4, 2018
1 parent 2803b2e commit 8a700d3
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions docs/operation.rst
Expand Up @@ -79,14 +79,10 @@ Debugging Zope
In order to debug the Zope application, it can be helpful to connect
to its database and inspect or change it on the command line. This
feature was previously available via the dedicated `zopectl debug`
command and the same can be achieved in the new WSGI setup.
command - in the new WSGI setup this is available via the `zconsole`
module and console script::

Assuming you have a Python interpreter with the correct sys.path
available, for example as ``bin/zopepy``, you can run::

$ ZOPE_CONFIG=etc/wsgi.conf bin/zopepy
>>> import Zope2
>>> app = Zope2.app()
$ bin/zconsole debug etc/wsgi.conf
>>> app
<Application at >

Expand All @@ -99,6 +95,13 @@ available, for example as ``bin/zopepy``, you can run::
<User 'foo'>
>>> transaction.commit()

Running scripts
---------------

This was previously availabe using `zopectl run <path_to_script> <scriparg1> ...`.
Again in the WSGI setup the `zconsole` module and console script can be used::

$ bin/zconsole run etc/wsgi.conf <path_to_script> <scriptarg1> ...

Logging In To Zope
------------------
Expand Down

0 comments on commit 8a700d3

Please sign in to comment.