Skip to content

Commit 9d32791

Browse files
author
Luke Petre
committed
Improving activation documentation
1 parent e14e98b commit 9d32791

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,24 @@ ENV.pipeline {
122122

123123
### What does activation do?
124124

125-
When *ember-cli-deploy-s3-index* uploads a file to S3, it uploads it under the key defined by a combination of the two config properties `filePattern` and `revisionKey`.
125+
When *ember-cli-deploy-s3-index* uploads a file to S3, it uploads it under the key defined by a combination of the four config properties `bucket`, `prefix`, `filePattern` and `revisionKey`.
126126

127127
So, if the `filePattern` was configured to be `index.html` and there had been a few revisons deployed, then your bucket might look something like this:
128128

129-
![s3-index-bucket](http://i.imgur.com/wmiaYyK.png)
129+
```bash
130+
$ aws s3 ls s3://<bucket>/
131+
PRE assets/
132+
2015-09-27 07:25:26 585 crossdomain.xml
133+
2015-09-27 07:47:42 1207 index.html
134+
2015-09-27 07:25:51 1207 index.html:a644ba43cdb987288d646c5a97b1c8a9
135+
2015-09-27 07:20:27 1207 index.html:61cfff627b79058277e604686197bbbd
136+
2015-09-27 07:19:11 1207 index.html:9dd26dbc8f3f9a8a342d067335315a63
137+
```
130138

131139
Activating a revision would copy the content of the passed revision to `index.html` which is used to host your ember application via the [static web hosting](https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html) feature built into S3.
132140

133141
```bash
134-
$ ember deploy:activate --revision 18613f3a225d29ec065240a1499f8545
142+
$ ember deploy:activate --revision a644ba43cdb987288d646c5a97b1c8a9
135143
```
136144

137145
### When does activation occur?

0 commit comments

Comments
 (0)