source: gutenbach-web/old/dispatch.fcgi.in @ 27ee337

debianmacno-cupsweb
Last change on this file since 27ee337 was 27ee337, checked in by Kyle Brogle <broglek@…>, 14 years ago

Actually moved files into 'old' directory

  • 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.