Skip to content

Commit

Permalink
Updated the README to reflect the current status and added a sample c…
Browse files Browse the repository at this point in the history
…onfiguration.
  • Loading branch information
brosner committed Jul 4, 2008
1 parent 7a2c1a6 commit 0540e7a
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 7 deletions.
33 changes: 26 additions & 7 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,34 @@ Configuration
=============

Configuration of bosnowsgi is where its real power shines. You must create
yourself ``~/.bosnowsgirc`` file. This file is YAML that defines WSGI
processes at the top-level by name. Here is a quick example of a miminal
configuration file::
yourself ``~/.wsgirc`` file. The configuration format is YAML and has two
top-level keys, ``pid-path`` and ``processes``. Here is a quick sample::

oebfare:
dispatcher: "trac.main.web.dispatch_request"
pid-path: "~/run"

Parameters
----------
processes:
oebfare:
dispatcher: "trac.web.main.dispatch_request"

trac:
dispatcher: "trac.web.main.dispatch_request"

Global Parameters
-----------------

pid-path
~~~~~~~~

The path where bosnowsgi should store the PID files for the processes it
spawns off.

processes
~~~~~~~~~

A container for each process and their configuration.

Process Parameters
------------------

dispatcher
~~~~~~~~~~
Expand Down
11 changes: 11 additions & 0 deletions sample_wsgirc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

# this is a sample .wsgirc

pid-path: "~/run"

processes:
oebfare:
dispatcher: "trac.web.main.dispatch_request"

trac:
dispatcher: "trac.web.main.dispatch_request"

0 comments on commit 0540e7a

Please sign in to comment.