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.
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
- 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
ember deploy <target> --activate
Or you can activate after the fact
ember deploy:activate <target> --revision=<revision>
The subscription data is a stringified JSON object that contains:
project
- name frompackage.json
revisionKey
- The activated revision keypreviousRevisionKey
- The previous revision key
- https://github.com/knownasilya/ember-cli-deploy-gcloud-storage
- https://github.com/mwpastore/ember-cli-deploy-sql
git clone https://github.com/knownasilya/ember-cli-deploy-gcloud-pubsub
cd ember-cli-deploy-gcloud-pubsub
npm install
npm run lint:js
npm run lint:js -- --fix
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
ember serve
- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
This project is licensed under the MIT License.