Charm: gunicorn
Summary
Gunicorn
Charm Store
juju deploy cs:~patrick-hetu/precise/gunicorn-2
Owner
patrick-hetu
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:~patrick-hetu/charms/precise/gunicorn/trunk
Interfaces
Provides
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
wsgi_max_requests int
wsgi_access_logformat string
wsgi_workers int
wsgi_worker_class string
wsgi_backlog 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. Also, the second gunicorn server will
   be launch to port 8081. The script grab the first free port from 8080.
   I recommend using a reverse proxy like Nginx in front of Gunicorn. 

Changes  
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)
2012/07/07 Patrick Hetu fix a logic error (revno 17)
2012/07/07 Patrick Hetu make upgrade-charm executable (revno 16)
2012/07/07 Patrick Hetu add an upgrade-charm hook (revno 15)
2012/07/06 Patrick Hetu with set -e conditions needs rewrite (revno 14)
2012/07/06 Patrick Hetu be sure to use the gunicorn port in website relation (revno 13)
In other archives
Newer ~gnuoy:precise/gunicorn
Newer precise/gunicorn