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.
| 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) |