ember-cli-deploy-gcloud-pubsub
v0.1.7
Published
Notify that a deployment has been activated via Google PubSub.
Downloads
14
Maintainers
Readme
ember-cli-deploy-gcloud-pubsub
Notify that a deployment has been activated via Google PubSub.
This is an alternative to the webhooks plugin, which doesn't work
in a setup where the application is clustered and the cache is local to each instance of the application, like a Map
instance.
Note: If you use Redis, the webhook plugin should work for you, even if clustered.
Installation
ember install ember-cli-deploy-gcloud-pubsub
Requires these other plugins:
- https://github.com/ember-cli-deploy/ember-cli-deploy
- https://github.com/ember-cli-deploy/ember-cli-deploy-build
- https://github.com/ember-cli-deploy/ember-cli-deploy-revision-data
Usage
Setup PubSub
- Configure the plugin to access your PubSub account.
- Setup PubSub to accept notifications/send notifications
To create a PubSub topic, run a deployment with the SETUP
env var.
SETUP=true ember deploy alpha
This will create a topic in PubSub which will be used for the subscription.
- Create a subscription for the topic
Use
ember deploy <target> --activate
Or you can activate after the fact
ember deploy:activate <target> --revision=<revision>
Subscription Data
The subscription data is a stringified JSON object that contains:
project
- name frompackage.json
revisionKey
- The activated revision keypreviousRevisionKey
- The previous revision key
Works well with
- https://github.com/knownasilya/ember-cli-deploy-gcloud-storage
- https://github.com/mwpastore/ember-cli-deploy-sql
Contributing
Installation
git clone https://github.com/knownasilya/ember-cli-deploy-gcloud-pubsub
cd ember-cli-deploy-gcloud-pubsub
npm install
Linting
npm run lint:js
npm run lint:js -- --fix
Running tests
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"ember try:each
– Runs the test suite against multiple Ember versions
Running the dummy application
ember serve
- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
License
This project is licensed under the MIT License.