Created
August 21, 2012 17:30
-
-
Save kamyar1979/3417562 to your computer and use it in GitHub Desktop.
Paste.Deploy general ISAIP-WSGI dll maker file for IIS.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os,sys | |
import isapi_wsgi | |
if hasattr(sys, "isapidllhandle"): | |
import win32traceutil | |
appdir = r'D:\Web\Rhodecode\\' | |
# The entry points for the ISAPI extension. | |
def __ExtensionFactory__(): | |
from paste.deploy import loadapp | |
pylonsapp = loadapp('config:' + appdir + 'production.ini', relative_to=appdir) | |
#traceon = 1 | |
return isapi_wsgi.ISAPIThreadPoolHandler(pylonsapp) | |
if __name__=='__main__': | |
# If run from the command-line, install ourselves. | |
from isapi.install import * | |
params = ISAPIParameters() | |
# Setup the virtual directories - this is a list of directories our | |
# extension uses - in this case only 1. | |
# Each extension has a "script map" - this is the mapping of ISAPI | |
# extensions. | |
sm = [ScriptMapParams(Extension="*", Flags=0)] | |
HandleCommandLine(params) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment