I am trying to understand the behavior of the Pyramid regarding configuration [main:server]
and gun.
If I use pserve
, it will use the configuration [main:server]
for waitress and gunicorn. For instance:
[server:main]
use = egg:waitress
listen = *:6543
So, now it $ pserve development.ini
will launch the project with the waitress, which is expected. But if I use a command $ gunicorn
(with a gun or a waitress in an ini file), this will work too, which is not expected from me.
My questions:
Why does this configuration work if I run the command $ gunicorn --paste development.ini
?
what happens under the hook? does the waitress work? (I would say this is not in accordance with the processes on my computer)
source
share