You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-14Lines changed: 24 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -64,15 +64,15 @@ The region your bucket is located in.
64
64
65
65
*Default:*`'us-east-1'`
66
66
67
-
### currentRevisionIdentifier
67
+
### prefix
68
68
69
-
To be able to display an indicator in the revisions list that points to the current active revision this plugin uploads a json file that identifies the currently deployed revision to your bucket. You can change the file-name of this file with this option.
69
+
A directory within the `bucket`that the files should be uploaded in to.
70
70
71
-
*Default:*`'current.json'`
71
+
*Default:*`''`
72
72
73
73
### filePattern
74
74
75
-
A file matching this pattern will be uploaded to S3.
75
+
A file matching this pattern will be uploaded to S3. The active key in S3 will be a combination of the `bucket`, `prefix`, `filePattern`. The versioned keys will have `revisionKey` appended.
76
76
77
77
*Default:*`'index.html'`
78
78
@@ -82,18 +82,20 @@ The root directory where the file matching `filePattern` will be searched for. B
82
82
83
83
*Default:*`context.distDir`
84
84
85
-
### keyPrefix
86
-
87
-
The prefix to be used for the key under which file will be uploaded to S3. The key will be a combination of the `keyPrefix` and the `revisionKey`. By default this option will use the `project.name()` property from the deployment context.
88
-
89
-
*Default:*`context.project.name() + ':index'`
90
-
91
85
### revisionKey
92
86
93
87
The unique revision number for the version of the file being uploaded to S3. The key will be a combination of the `keyPrefix` and the `revisionKey`. By default this option will use either the `revisionKey` passed in from the command line or the `revisionKey` property from the deployment context.
The underlying S3 library used to upload the files to S3. This allows the user to use the default upload client provided by this plugin but switch out the underlying library that is used to actually send the files.
94
+
95
+
The client specified MUST implement functions called `getObject` and `putObject`.
96
+
97
+
*Default:* the default S3 library is `aws-sdk`
98
+
97
99
### How do I activate a revision?
98
100
99
101
A user can activate a revision by either:
@@ -120,16 +122,24 @@ ENV.pipeline {
120
122
121
123
### What does activation do?
122
124
123
-
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 `keyPrefix` 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`.
124
126
125
-
So, if the `keyPrefix` was configured to be `deploy-test:index` and there had been a few revisons deployed, then your bucket might look something like this:
127
+
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:
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.
130
140
131
141
```bash
132
-
$ ember deploy:activate --revision deploy-test:index:18613f3a225d29ec065240a1499f8545
142
+
$ ember deploy:activate --revision a644ba43cdb987288d646c5a97b1c8a9
0 commit comments