I'm using ip address of 0.0.0.0 in development ini. this 0.0.0.0 meand
listen on all ip addresses on the machine.
> Thanks, Timuçin, your response led me to some interesting education,
> but it does not really solve my problem. I need to set the appliance
> to some address; there may be multiple appliances on the same server;
> and they will each require their own IP address. Really what I am
> asking is whether there is a way to override the IP address assigned
> in development.ini at run time or do I need to edit development.ini
> (or production.ini)? For example, I would really like to be able to
> use something like:
>
> paster serve --ip=192.168.97.33 production.ini
>
> in my init.d script.
>
> My appliance needs to be accessible from outside the server on which
> it is being run as a virtual machine, but still only within the
> firewall (not the public network (that's why I can use the 192.168
> kind of private address).
> I'm sorry that I was not more clear yesterday.
paster known key=value arguments to the command-line which can be replaced in the config. It explicitly mentions http-ports, so probably iPs work to.
(abl.formstream)tequila:framework deets$ paster help serve
Usage: /Users/deets/.virtualenvs2.5/abl.formstream/bin/paster serve [options] CONFIG_FILE [start|stop|restart|status] [var=value]
Serve the described application
This command serves a web application that uses a paste.deploy configuration
file for the server and application. If start/stop/restart is given, then
--daemon is implied, and it will start (normal operation), stop (--stop-
daemon), or do both. You can also include variable assignments like
'http_port=8080' and then use %(http_port)s in your config files.
Diez