0.2.1 • Published 6 years ago

ember-cli-deploy-redis-publish v0.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Ember-cli-deploy-redis-publish

npm.io

Upon activation this ember-cli-deploy plugin publishes an event on redis based on your configuration.

Requirements

You need to provide your redis configuration in config/deploy.js (same than ember-cli-deploy-redis)

ENV.redis = {
  host: '<your-redis-host>',
  port: <your-redis-port>,
  password: '<your-redis-password>'
}

Quick Start

Run the following command in your terminal

ember install ember-cli-deploy-redis-publish

In your config/deploy.js, add one or more configuration object.

ENV.redisPublish = [
  {
    channel: '<your-channel-name>',
    message: '<your-message>'
  },
  {
    channel: '<your-channel-name>',
    message: { '<some-key>': '<some-value>' } // will be serialized through JSON.stringify
  }
]

TODO

  • Add tests