You can use the ini file options and start pyramid just by passing the ini
file name.

e.g. bin/pserve development.ini

Gunicorn is loaded in the ini file:

[app:main]
use = egg:myapp

pyramid.reload_templates = false
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.debug_templates = false
pyramid.default_locale_name = en

[server:main]
use = egg:gunicorn#main
host = 0.0.0.0
port = 6543
worker = 4
worker_class = gevent
#worker_class = eventlet
#worker_class = sync

Arndt.


2014-02-04 Kate Boelhauf <[email protected]>:

> Hi All,
>   Can anyone point be to examples of using gunicorn with Pyramid.  I can
> get this example to work:
> https://www.digitalocean.com/community/articles/how-to-deploy-python-wsgi-apps-using-gunicorn-http-server-behind-nginx-
>  but when I update the WSGI file to incorporate my pyramid app it breaks.
>
> Specifically I am interested in examples of WSGI files and also the
> command used to start gunicorn. I am unsure whether I should be using $
> gunicorn [OPTIONS] APP_MODULE or $ paster serve development.ini workers=2
>
>

-- 
Arndt Droullier, Nive GmbH, Köln, Germany | Nive Open Source Cms:
cms.nive.co

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to