Show More
@@ -22,7 +22,6 b' from mercurial import demandimport; dema' | |||||
22 | #os.environ["HGENCODING"] = "UTF-8" |
|
22 | #os.environ["HGENCODING"] = "UTF-8" | |
23 |
|
23 | |||
24 | from mercurial.hgweb.hgwebdir_mod import hgwebdir |
|
24 | from mercurial.hgweb.hgwebdir_mod import hgwebdir | |
25 | from mercurial.hgweb.request import wsgiapplication |
|
|||
26 | from flup.server.fcgi import WSGIServer |
|
25 | from flup.server.fcgi import WSGIServer | |
27 |
|
26 | |||
28 | # The config file looks like this. You can have paths to individual |
|
27 | # The config file looks like this. You can have paths to individual | |
@@ -60,7 +59,4 b' from flup.server.fcgi import WSGIServer' | |||||
60 | # Alternatively you can pass a list of ('virtual/path', '/real/path') tuples |
|
59 | # Alternatively you can pass a list of ('virtual/path', '/real/path') tuples | |
61 | # or use a dictionary with entries like 'virtual/path': '/real/path' |
|
60 | # or use a dictionary with entries like 'virtual/path': '/real/path' | |
62 |
|
61 | |||
63 | def make_web_app(): |
|
62 | WSGIServer(hgwebdir('hgweb.config')).run() | |
64 | return hgwebdir("hgweb.config") |
|
|||
65 |
|
||||
66 | WSGIServer(wsgiapplication(make_web_app)).run() |
|
General Comments 0
You need to be logged in to leave comments.
Login now