Hmm, do I understand correctly that "code.py" is an executable python script that imports and uses web? If so, this is via the command line argument (thus sys.argv) and I need to configure it from a configuration file instead..
Is there any way? many thanks for your help! -b On Sep 23, 5:08 pm, 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.
