Jonathan Mark wrote:
I am now able to run PHP and Perl as CGI under the twisted.server. The scripts are of the form:
############################# from twisted.web import static, twcgi
class PHPScript(twcgi.FilteredScript): filter - '/usr/bin/php' #point to your php standalone executable. It should be compiled to run without a webserver.
resource = static.File("/PhysicalDirectorForSourceFiles") resource.processors = ('.php': PHPScript)
resources.indexNames = ['FrontPageForPHPWebsite'] ################################
What would I need to do in order to get Ruby to run under twisted.server? I realize this may be a if-you-need-to-ask-it-is-too-difficult-for-you question.
I've never used ruby so I can't say for certain, but this is probably a good place to start. class RubyScript(twcgi.FilteredScript): filter = '/usr/bin/ruby' (Having an irrational dislike of ruby i suspect that will explode in horrible horrible horrible ways) -David