~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/en/user-guide/http_smart_server.txt

Merge with get_file_sha1

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
    from bzrlib.transport.http import wsgi
133
133
 
134
134
    smart_server_app = wsgi.make_app(
135
 
        root='/srv/example.com/code',
 
135
        root='/srv/example.com/www/code',
136
136
        prefix='/code/',
137
137
        path_var='REQUEST_URI',
138
138
        readonly=True)
156
156
    from bzrlib.transport.http import wsgi
157
157
 
158
158
    smart_server_app = wsgi.make_app(
159
 
        root='/srv/example.com/code',
 
159
        root='/srv/example.com/www/code',
160
160
        prefix='/code/',
161
161
        path_var='REQUEST_URI',
162
162
        readonly=True)
166
166
        wsgi_server = modpywsgi.WSGIServer(smart_server_app)
167
167
        return wsgi_server.run(request)
168
168
        
169
 
The `modpywsgi` module can be found at http://trac.pocoo.org/wiki/ModPyWsgi.  It
170
 
is part of pocoo_.
171
 
You sould make sure you place modpywsgi.py in the same directory as
172
 
bzr-smart.py (ie. /srv/example.com/scripts/).
 
169
The `modpywsgi` module can be found at
 
170
http://dev.pocoo.org/projects/pocoo/browser/pocoo/wrappers/modpy.py. It is
 
171
part of pocoo_. You sould make sure you place modpywsgi.py in the same
 
172
directory as bzr-smart.py (ie. /srv/example.com/scripts/).
173
173
 
174
 
.. _pocoo: http://trac.pocoo.org/wiki/
 
174
.. _pocoo: http://dev.pocoo.org/projects/pocoo/
175
175
 
176
176
Clients
177
177
-------