serverless-offline-redis-server
Run a local Redis server using Serverless Offline.
This plugin is intended for local development only, and is therefore only invoked on
serverless offline start
.
Installation
-
Install the Redis server locally.
-
Add this plugin as a dev dependency:
# NPMnpm install --save-dev serverless-offline-redis-server# Yarnyarn add -D serverless-offline-redis-server -
Add the plugin to your
serverless.yml
file:plugins:- serverless-offline-redis-server
Configuration
You can pass any configuration accepted by redis-server via the custom.redis
property in your serverless.yml
.
service: myservicecustom: redis: port: 8888