~chris-gondolin/ubuntu-partner-website/deployer-precise-friendly

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Robin Winslow
  • Date: 2014-07-10 19:37:18 UTC
  • Revision ID: robin.winslow@canonical.com-20140710193718-57tt90y84uwbqljl
Makefile: make build-and-deploy-dev actually does deploy-dev rather than production; reformat help text

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
These are Juju deploy instructions for the ubuntu-partner-website project.
8
8
 
9
 
Usage :
 
9
Usage
 
10
---
10
11
 
11
12
> make [target]
12
 
e.g. :
 
13
e.g.
13
14
> make build-and-deploy
14
15
 
15
 
Available targets :
16
 
 
17
 
help
 
16
Available targets
18
17
---
 
18
 
 
19
### help
 
20
 
19
21
Display this help text
20
22
 
21
 
clean
22
 
---
 
23
### clean
 
24
 
23
25
Delete all generated files :
24
26
- ubuntu-partner-website/
25
27
- charms/
26
28
- bundles.yaml
27
29
 
28
 
update-project-directory
29
 
---
 
30
### update-project-directory
 
31
 
30
32
Create or update the project directory (ubuntu-partner-website/)
31
33
- bzr branch and pull
32
34
- build sass files
33
35
- create pip-cache from requirements file
34
36
 
35
 
upload-and-update-bundles-yaml
36
 
---
 
37
### upload-and-update-bundles-yaml
 
38
 
37
39
- Make a tar.gz file from the project directory
38
40
- Upload it to swift with the timestamp
39
41
- Create bundles.yaml with the project information
40
42
 
41
 
deploy-dev
42
 
---
 
43
### deploy-dev
 
44
 
43
45
Juju deploy will read bundles.yaml
44
46
and deploy the "ubuntu-partner" instruction
45
47
 
 
48
### deploy-production
46
49
 
47
 
deploy-production
48
 
---
49
50
Juju deploy will read bundles.yaml
50
51
and deploy the "ubuntu-partner-production" instruction
51
52
 
52
 
build-and-deploy
53
 
---
54
 
Runs the following :
 
53
### build-and-deploy
 
54
 
 
55
Runs
55
56
- make clean
56
57
- make update-project-directory
57
58
- make upload-and-update-bundles-yaml
58
59
- make deploy-production
59
60
 
60
 
build-and-deploy
61
 
---
62
 
Runs the following :
 
61
### build-and-deploy-dev
 
62
 
 
63
Runs
63
64
- make clean
64
65
- make update-project-directory
65
66
- make upload-and-update-bundles-yaml
66
67
- make deploy-dev
67
68
 
68
 
update-project
69
 
---
70
 
Update the project by :
 
69
### update-project
 
70
 
 
71
Update the project by
71
72
- Pulling down any changes
72
73
- Rebuilding the zip
73
74
- Uploading the zip
75
76
 
76
77
N.B. : The charm must be deployed already
77
78
 
78
 
nagios-checks
79
 
---
 
79
### nagios-checks
 
80
 
80
81
Run nagios checked on deployed environments
81
82
 
82
83
N.B. : You must have deployed the production bundle,
115
116
        $(MAKE) clean
116
117
        $(MAKE) update-project-directory
117
118
        $(MAKE) upload-and-update-bundles-yaml
118
 
        $(MAKE) deploy-production
 
119
        $(MAKE) deploy-dev
119
120
 
120
121
update-project:
121
122
        $(MAKE) update-project-directory