Anyhow, I've tried it (to call my app "peccatore.py" with a command
line argument for the port, but that doesn't work:
!! webWrk has died from an unexpected cause
Traceback (most recent call last):
File "/home/peccatore/peccatore/mp.py", line 97, in run
self.target(*self.args)
File "/usr/local/lib/python2.7/site-packages/web/application.py",
line 313, in run
return wsgi.runwsgi(self.wsgifunc(*middleware))
File "/usr/local/lib/python2.7/site-packages/web/wsgi.py", line 54,
in runwsgi
return httpserver.runsimple(func, validip(listget(sys.argv, 1,
'')))
File "/usr/local/lib/python2.7/site-packages/web/net.py", line 62,
in validip
ip = ip.split(":", 1)
AttributeError: 'int' object has no attribute 'split'
It seems that starting application.run() as a subprocess of
multiprocessing, argv doesn't become visible to subprocesses..
Should I patch application.run, wsgi.runwsgi, and
httpserver.runsimple? Is that something to contribute back?
many thanks
-b
--
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en.