Charm: gunicorn
Summary
Gunicorn
Charm Store
juju deploy cs:precise/gunicorn-6
Maintainer
Patrick Hetu
Series
precise
Description
Gunicorn or Green Unicorn is a Python WSGI HTTP Server for UNIX. It's a pre-fork worker model ported from Ruby's Unicorn project. The Gunicorn server is broadly compatible with various web frameworks, simply implemented, light on server resources, and fairly speedy.
Links
Repository   Bugs
lp:~charmers/charms/precise/gunicorn/trunk
Interfaces
Requires
Config
wsgi_group string
wsgi_timeout int
wsgi_extra string
wsgi_log_level string
wsgi_user string
wsgi_log_file string
wsgi_umask string
wsgi_timestamp string
wsgi_keep_alive int
wsgi_wsgi_file string
port int
python_path string
wsgi_max_requests int
django_settings string
wsgi_access_logformat string
wsgi_backlog int
wsgi_worker_class string
wsgi_workers int
wsgi_worker_connections int
wsgi_access_logfile string
Details
Readme
Juju charm gunicorn
===================

:Author: Patrick Hetu <patrick@koumbit.org>

How to configure the charm
--------------------------

To deploy a charm with this subordinate it must minimaly:

  1. Provide the wsgi interface.
  2. Set the `working_dir` relation variable in the wsgi hook.

The configuration of Gunicorn will use the variable pass by
the relation hook first. If there are not define it will
fallback to the global configuration of the charm.

Example deployment
------------------



1. Deployment with python-moinmoin for example::

    juju bootstrap
    juju deploy --config mywiki_with_wsgi_settings.yaml python-moinmoin
    juju deploy gunicorn
    juju add-relation gunicorn python-moinmoin
    juju expose gunicorn

2. Accessing your new wiki should be ready at::

       http://<machine-addr>:8080/

   To find out the public address of gunicorn/python-moinmoin, look for it in
   the output of the `juju status` command.
   I recommend using a reverse proxy like Nginx in front of Gunicorn. 

Changes  
2013/01/24 Robert Ayres Merge in Patrick's changes (revno 26)
2013/01/03 Mark Mims merging https://code.launchpad.net/~gnuoy/charms/precise/gunicorn/gunicorn-apt-lock-checking/+merge/ (revno 25)
2012/10/04 Robert Ayres Merged changes from gnuoy (revno 24)
2012/10/03 Robert Ayres Merged changes from gnuoy (revno 23)
2012/09/14 Juan L. Negron Added support for running gunicorn in django mode in addition to wsgi. Also allow pythonpath to be e (revno 22)
2012/07/09 Patrick Hetu undo port sending (revno 21)
2012/07/08 Patrick Hetu Move back the website relation to the application charm (revno 20)
2012/07/08 Patrick Hetu make sure we use bash for all scripts (revno 19)
2012/07/08 Patrick Hetu only use unit's name for naming configuration files (revno 18)