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.
The providers of the wsgi relation must provide working_dir, plus optionally
any of the charm's config directives, which will override the current config
for the charm.
To deploy a charm with this subordinate it must minimally:
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.
Deployment with python-django for example::
juju deploy python-django
juju deploy postgresql
juju deploy gunicorn
juju add-relation python-django postgresql:db
juju add-relation gunicorn python-django
juju expose python-django
Accessing your new django app should be ready at::
To find out the public address of gunicorn/python-django, look for it in
the output of the juju status command.
I recommend using a reverse proxy like Nginx in front of Gunicorn.
No backwards incompatible changes.
Backwards incompatible changes: