0.1.7 • Published 5 years ago

ember-cli-deploy-gcloud-pubsub v0.1.7

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

ember-cli-deploy-gcloud-pubsub

Notify that a deployment has been activated via Google PubSub.

NPM Build Status Ember Observer Score
Ember-CLI Deploy Version

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:

Usage

Setup PubSub

  1. Configure the plugin to access your PubSub account.
  2. 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.

  1. 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 from package.json
  • revisionKey - The activated revision key
  • previousRevisionKey - The previous revision key

Works well with

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 version
  • ember test --server – Runs the test suite in "watch mode"
  • ember try:each – Runs the test suite against multiple Ember versions

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

License

This project is licensed under the MIT License.