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