4
:Author: Patrick Hetu <patrick@koumbit.org>
6
How to configure the charm
7
--------------------------
9
To deploy a charm with this subordinate it must minimaly:
11
1. Provide the wsgi interface.
12
2. Set the `working_dir` relation variable in the wsgi hook.
14
The configuration of Gunicorn will use the variable pass by
15
the relation hook first. If there are not define it will
16
fallback to the global configuration of the charm.
21
1. Deployment with python-moinmoin for example::
24
juju deploy --config mywiki_with_wsgi_settings.yaml python-moinmoin
26
juju add-relation gunicorn python-moinmoin
27
juju expose python-moinmoin
29
2. Accessing your new wiki should be ready at::
31
http://<machine-addr>:8080/
33
To find out the public address of gunicorn/python-moinmoin, look for it in
34
the output of the `juju status` command.
35
I recommend using a reverse proxy like Nginx in front of Gunicorn.
43
* Rewrite the charm using python instead of BASH scripts
44
* add listen_ip configuration variable
46
Backwards incompatible changes:
47
* Remove the Django mode since Gunicorn is not recommending it anymore.
48
* Use Upstart to manage daemons
49
* no start/stop hook anymore use related charms instead.
50
* no configuration change directly on the charm anymore, use related charms instead.
51
* no access logging by default
52
* exposing a port must now be done in the linked charm instead of this one