...the author of this post seems to be looking (as I am) for a way to invoke the server from INSIDE another program. When this is the case, there is not going to be any command line to process. The subclassing approach shown later on in this thread might work. I'd love to see another solution.
---v On Sep 23, 8:08 am, Greg Milby <[email protected]> wrote: > maybe this would work(?) > > code.py 8081 > (or any other port) > > hth > > > > On Thu, Sep 23, 2010 at 11:05 AM, bud <[email protected]> wrote: > > Hello, > > > I have used web.py as an embedded web app that I run as one of many > > subprocesses created and controlled with the multi-processing module > > (a multiporcessing.Process with a target of type web.Application.run). > > > Since port 8080 is already in use on the deployment machine, I'm > > trying > > to find a way to set the port differently. I expected that > > web.Application has some keyword argument to set a different port, but > > that doesn't seem to be the case. I tried a much less elegant way of > > setting sys.argv[1], but that doesn't work either. > > > Any idea how to get the job done? > > > 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] <webpy%[email protected]>. > > For more options, visit this group at > >http://groups.google.com/group/webpy?hl=en. -- 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.
