-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Labels
Description
What I did:
Given a zope config like this:
[DEFAULT]
http_port = 8000
[app:zope]
use = egg:Zope#main
zope_conf = %(here)s/zope.conf
[pipeline:main]
pipeline =
egg:Zope#httpexceptions
zope
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = %(http_port)sI tried overriding that value from the command line by calling runwsgi like this
runwsgi --verbose --debug instances/test/etc/wsgi.ini http_port=8001I expected the resulting server to run on port 8001 - but it didn't and instead ran on DEFAULT.http_port.
What I expect to happen:
There should be a way to verride values from the command line while allowing a default value from the configuration file.
What actually happened:
Overriding not possible.
What version of Python and Zope/Addons I am using:
% python --version :(
Python 3.6.8
% pip list |grep -i zope
Zope 5.1.1.dev0 /Users/dwt/Code/Projekte/zope4/Zope/src