Hi, I wrote the original guide and spent days futzing with IIS and Pylons in order to *sort-of* get it going. I since switched to running the paste server as a windows service and it is much more stable and usable. I'd recommend going that way unless you absolutely need IIS (the only reason I can think of is NTLM auth).
davep On Dec 10, 9:47 am, Localhost <[EMAIL PROTECTED]> wrote: > Mark, > > I should add that the original ISAPI guide makes a functional base > Pylons 0.9.6.1 installation (though the <appname>/app path is of > course present). > > On Dec 7, 7:39 pm, markjrees <[EMAIL PROTECTED]> wrote: > > > Chris Lambacher has contributed a patch to isapi_wsgi that allows > > serving of a wsgi app as at root. > > >http://isapi_wsgi-dev.googlegroups.com/web/isapi-wsgi_with_apps.diff > > Is there a sample configuration file similar to the one posted on > the Serving a Pylons app with IIS on the Pylons Cookbook website? The > biggest issue I'm seeing is wouldn't the VirtualDirParameters call be > replaced with something else if it was to no longer be a Virtual > Directory and function at the root? > > In my own testing, I've found that doing an install and remove may > be better that doing an iisreset as it seems to achieve the same task; > however, without requiring the whole IIS server to be shutdown (as > other sites may be running on the same server). For example: > > # Assuming the extension has already been installed > python pylonstest_isapi_extension.py remove > python pylonstest_isapi_extension.py install > > One element that would be very effective is leveraging off of > functionality similar to paster --reload so that this would be done > whenever a Python file is modified. I've done some basic work work > with paste.reloaderhttp://pythonpaste.org/module-paste.reloader.html > and made a derived class where I basically ran a modified > periodic_reload. My only concern is I'm not sure how to make a decent > loop so in my testing I've done a sleep(1) and ran the code again. > The problem I see with the batch file is if the code returned isn't 3 > it just ends instead of checking periodically like it is supposed to > -- unless it does but it does return to the command line immediately > upon execution. > > I'm thinking of looking into PasteScript's script/serve.py to see > how paster does it (as I'm sure its a better way). It would be great > to create a Windows Service that could be started and run the file > monitor so that the remove/install could be automated. Eventually it > would be very sweet if it could be setup that would allow multiple > Pylons applications to run and be monitored separately -- or is there > perhaps a better way then this to implement a file monitor for use in > isapi_wsgi? Thanks. > > > > > It will be included as part of the isapi_wsgi distribution once I have > > finished testing it and some changes that will be checked in. > > > Regards > > > Mark > > > On Dec 8, 9:29 am, Localhost <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > I'm trying to make my Pylons application integrate with IIS; > > > however, I have a few main issues that I can't seem to solve using the > > > isapi_wsgi documentation located > > > athttp://wiki.pylonshq.com/display/pylonscookbook/Serving+a+Pylons+app+... > > > : > > > > 1) How do make my Pylons application function as it it was at the > > > root directory of a given IIS Web Site. For example, when I add my > > > application it would be at localhost/myapp in the virtual directory > > > structure. I want this to be located at localhost, if possible. > > > Further to this, even though the application is located at localhost/ > > > myapp in the interface the actual website must be accessed at "http:// > > > localhost/myapp/app/" > > > > 2) The WSGI interface also does not appear to behave well with the > > > modules like AuthKit 0.4 that work very well in paster. I've tried > > > doing Win32 tracing on my application that works fine with paster but > > > I see no results in the win32traceutil.py. Anyone familiar with these > > > issues? Does modules such as SQLAlchemy also conflict with the > > > ISAPI_WSGI module? > > > > On a somewhat related note, I'm using FormEncode in my paster hosted > > > application and I've noticed that when I submit forms that change site > > > data I may occassionally receive a 'cannot find page error' that seems > > > to occur 50% of the time (the changes appear to be saved, however) -- > > > it does not occur all the time but often enough to make me aware that > > > paster may not be able to handle that kind of load -- even from a > > > single user! Is this normal, I get the feeling it isn't? > > > > I know someone would at least suggest hosting the application under > > > Apache, which I'm sure would work very well; however, it is not my > > > choice to have to use IIS -- perhaps sufficient proof of > > > incompatibility may allow me to argue the case better. Although if I > > > could figure out what's wrong with the paster I may be able to > > > continue to use it. > > > > Thank you in advance to anyone that can offer help or suggestions!- Hide > > > quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
