source: web/old/dispatch.fcgi.in @ b349e5d

debianmacno-cupsweb
Last change on this file since b349e5d was 30beeab, checked in by Jessica B. Hamrick <jhamrick@…>, 14 years ago

Remove "gutenbach-" from directory names and rename "gutenbach" to "gutenbach-server"

  • Property mode set to 100755
File size: 747 bytes
Line 
1#!/usr/bin/env python
2# If you're using virtualenv, make sure you edit the shebang to use
3# that binary.
4
5# This is a sample dispatch.fcgi file. You will need to copy it to
6# a web accessible directory, and change some of the configuration
7# options.
8
9# This is an ugly hack for some Fedora specific beahvior
10__requires__ = ''
11
12import sys, os
13
14# Where is the actual application turbogears code located?
15turbogears = "/path/to/turbogears"
16
17sys.path.insert(0, turbogears)
18
19# Load the WSGI application from the config file
20from paste.deploy import loadapp
21wsgi_app = loadapp('config:' + turbogears + '/production.ini')
22
23# Deploy it using FastCGI
24if __name__ == '__main__':
25    from flup.server.fcgi import WSGIServer
26    WSGIServer(wsgi_app).run()
27
28
Note: See TracBrowser for help on using the repository browser.