[Twisted-web] Re: ignoreExt value archived inside a web.tap?
mesozoic at polynode.com
Fri Jul 16 10:22:20 MDT 2004
You can use "twistd -y filename.py" to load a Python script and
daemonize the application it describes. Run "twistd --help" for more
options; you might take a look at the "--no_save" and the
"--nodaemon" options, for future reference.
It bears mentioning that in your example, the application object isn't
really doing _anything_, because you're bypassing it when you start the
reactor directly. This application object is what "twistd -y" uses to
Below is what you'd need to change in your script to make this work.
root = static.File(pathToSiteRoot)
application = service.Application("web")
sc = service.IServiceCollection(application)
site = server.Site(root)
# --- snip ---
webserver = internet.TCPServer(port, site)
Let us know if this is what you're looking for.
"Never let your sense of morals prevent you from doing what is right."
-- Salvor Hardin, Isaac Asimov's _Foundation_
More information about the Twisted-web