Google Cloud Storage notifier of Ember FastBoot App Server.
const FastBootAppServer = require('fastboot-app-server');
const GCSNotifier = require('fastboot-gcs-notifier');
const notifier = new GCSNotifier({
bucket: 'bucket-name',
key: 'path/to/fastboot-deploy-info.json',
poll: 10 * 1000,
authentication: {
projectId: 'project-id',
keyFilename: 'path/to/key'
}
});
new FastBootAppServer({
notifier
}).start();
Normally this will be used with fastboot-gcs-downloader.
The name of the bucket that contains fastboot-deploy-info.json
.
If fastboot-deploy-info.json
is stored in a different name or subdirectory, specify this option.
Default: fastboot-deploy-info.json
Interval to check fastboot-deploy-info.json
update (in milliseconds).
Default: 3000
Google Cloud Storage authentication configuration object. This requires the following properties.
Project ID of Google Cloud Platform. You can use the GCLOUD_PROJECT
environment variable instead.
Path to .json, .pem or .p12 key file. You can use the credentials
option below or the GOOGLE_APPLICATION_CREDENTIALS
environment variable instead.
Object with client_email
and private_key
properties. You can use the above keyFilename
option or the GOOGLE_APPLICATION_CREDENTIALS
environment variable instead.
See Google Cloud Node.js documentation for details on authentication.