~hockeypuck/charms/trusty/hockeypuck/trunk

« back to all changes in this revision

Viewing changes to README.md

  • Committer: Casey Marshall
  • Date: 2015-05-03 00:23:41 UTC
  • Revision ID: cmars@cmarstech.com-20150503002341-i98we4w025rydtcq
Add line breaks to try to fix formatting on jujucharms.com

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
Juju 1.23.2 or later is recommended to make full use of this charm's [juju
6
6
actions](https://jujucharms.com/docs/stable/actions). Install juju with:
7
7
 
8
 
```
9
 
sudo apt-add-repository ppa:juju/stable
10
 
sudo apt-get update
11
 
sudo apt-get install juju-core
12
 
```
 
8
`sudo apt-add-repository ppa:juju/stable`
 
9
 
 
10
`sudo apt-get update`
 
11
 
 
12
`sudo apt-get install juju-core`
13
13
 
14
14
Also `apt-get install juju-local` if you'd like to use the local provider.
15
15
 
24
24
 
25
25
Deploy MongoDB and relate it:
26
26
 
27
 
```
28
 
juju deploy mongodb
29
 
juju add-relation mongodb hockeypuck
30
 
```
 
27
`juju deploy mongodb`
 
28
 
 
29
`juju add-relation mongodb hockeypuck`
31
30
 
32
31
## HTTP reverse-proxy
33
32
 
34
33
Expose Hockeypuck on port 80 behind haproxy.
35
34
 
36
 
```
37
 
juju deploy haproxy
38
 
juju add-relation hockeypuck:website haproxy:reverseproxy
39
 
juju expose haproxy
40
 
```
 
35
`juju deploy haproxy`
 
36
 
 
37
`juju add-relation hockeypuck:website haproxy:reverseproxy`
 
38
 
 
39
`juju expose haproxy`
41
40
 
42
41
Or behind squid for caching.
43
42
 
44
 
```
45
 
juju deploy squid-reverseproxy
46
 
juju add-relation hockeypuck:website squid-reverseproxy
47
 
juju set squid-reverseproxy port=11371
48
 
juju expose squid
49
 
```
 
43
`juju deploy squid-reverseproxy`
 
44
 
 
45
`juju add-relation hockeypuck:website squid-reverseproxy`
 
46
 
 
47
`juju set squid-reverseproxy port=11371`
 
48
 
 
49
`juju expose squid`
50
50
 
51
51
## TODOs
52
52
TODO: using the actions