mup-redis-plugin
v0.2.3
Published
Plugin for Meteor Up to add support for redis
Downloads
234
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.
module.exports = {
// rest of config
plugins: ['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',
host: '127.0.0.1', // external redis host (optional) (default: 127.0.0.1)
port: 6379, // external redis port (optional) (default: 6379)
}
}
Next, run
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 asmup logs
, including--tail
and--follow
.
Redis Oplog
To use with Redis Oplog,
add the following configuration to your settings.json
:
{
"redisOplog": {
"redis": {
"host": "redis",
"port": 6379
}
}
}