> > Hello --
>
> > When an app is started, it binds to whatever IP address and port
> > number is specified in development.ini. How would you handle this on
> > a multi-user computer where several developers are working
> > simultaneously via remote X sessions? They all can't bind to the same
> > IP/port.
>
> > Each developer could obviously manually change this before launching
> > the HTTP daemon. But that's a pain to do each time. Or each
> > developer could have their own .ini file. But then important config
> > changes aren't shared between them during SVN commits. I've been
> > playing around with some iptables rules, but I don't think it's going
> > to work as I need it to. Is there a way I can use environment
> > variables in development.ini? Or does anyone have any other
> > suggestions? Thanks.
>
> Change your development.ini to have:
> port = %(port)s
>
> and then have your developers do:
> pserve ./development.ini port=8080
Thanks, John. I was hoping for an elegant solution like that.
You can also have one config file read another and override just the
changed variables. From Pylons test.ini:
===
[app:main]
use = config:development.ini
# Add additional test specific configuration options as necessary.
===
--
Mike Orr <slugg...@gmail.com>