debianmacno-cupsweb
Last change
on this file since 7b63831 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 | |
---|
12 | import sys, os |
---|
13 | |
---|
14 | # Where is the actual application turbogears code located? |
---|
15 | turbogears = "/path/to/turbogears" |
---|
16 | |
---|
17 | sys.path.insert(0, turbogears) |
---|
18 | |
---|
19 | # Load the WSGI application from the config file |
---|
20 | from paste.deploy import loadapp |
---|
21 | wsgi_app = loadapp('config:' + turbogears + '/production.ini') |
---|
22 | |
---|
23 | # Deploy it using FastCGI |
---|
24 | if __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.