Pylons / pyramid-cookiecutter-starter

A Cookiecutter (project template) for creating a Pyramid starter project with choices for template language (Jinja2, Chameleon, or Mako), persistent backend (none, SQLAlchemy with SQLite, or ZODB), and mapping of URLs to routes (URL dispatch or traversal)
96 stars 53 forks source link

gunicorn needs host + port instead of listen #68

Closed hyperknot closed 5 years ago

hyperknot commented 5 years ago

In the INI files, gunicorn can only parse port if it's specified in two lines, as host + port, and not in a single line as listen.

mmerickel commented 5 years ago

The data in the server section is custom to each runner. There is not a goal to make that section a subset of settings that works across server runners.

hyperknot commented 5 years ago

It might be custom, but host + port works with both of them, while listen only works for waitress.

mmerickel commented 5 years ago

My understanding is that listen is more featureful and recommended in waitress.

I'd rather not use the less-preferred version in waitress just so you don't have to think about the settings when you switch to gunicorn. When modifying which server you use you should look at the settings for that server and set them appropriately.