Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zodern/mup-redis
Plugin for Meteor Up to setup and manage Redis
https://github.com/zodern/mup-redis
meteor-up
Last synced: about 2 months ago
JSON representation
Plugin for Meteor Up to setup and manage Redis
- Host: GitHub
- URL: https://github.com/zodern/mup-redis
- Owner: zodern
- License: mit
- Created: 2017-08-14T16:28:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-12T21:59:04.000Z (over 4 years ago)
- Last Synced: 2024-10-19T15:14:07.316Z (3 months ago)
- Topics: meteor-up
- Language: JavaScript
- Size: 6.84 KB
- Stars: 7
- Watchers: 4
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mup-redis
Plugin for Meteor Up to setup and run Redis. Redis is run with `--appendonly yes` for persistance.
## Use
Install with `npm i -g mup-redis`.
Then, add to the `plugins` array in your mup config, and add a `redis` object.```js
module.exports = {
// rest of configplugins: ['mup-redis'],
redis: {
// Server to run redis on.
servers: { one: {} },
// Version of redis. Add '-alpine' to use a much smaller docker image
version: '3.2.10-alpine'
}
}
```Next, run
```bash
mup setup
mup reconfig
```Redis adds the environment variable `REDIS_URL` to the app. You cannot access redis from outside the server.
## Commands
- `mup redis setup`
- `mup redis start`
- `mup redis stop`
- `mup redis logs` View redis logs. Supports the same arguments as `mup logs`, including `--tail` and `--follow`.## Redis Oplog
To use with [Redis Oplog](https://github.com/cult-of-coders/redis-oplog),
add the following configuration to your `settings.json`:
```json
{
"redisOplog": {
"redis": {
"host": "redis",
"port": 6379
}
}
}
```