Files
medusa-store/docs/content/troubleshooting/redis-events.md
2021-11-23 18:08:00 +01:00

833 B

Redis not emitting events

When you create a new Medusa project, Redis is disabled by default. Instead, we use a fake Redis server, that allows you to start your project, but holds no functionality.

To enable a real Redis server, you need to install and start it up on your PC. Install it directly from their website or use Homebrew and run the following commands:

brew install redis
brew services start redis

Additonally, ensure that redis_url is not commented out in your project configuration in the bottom of your medusa-config.js.

module.exports = {
  projectConfig: {
    redis_url: REDIS_URL, // <-- Enables a real Redis server
    database_url: DATABASE_URL,
    database_type: "postgres",
    store_cors: STORE_CORS,
    admin_cors: ADMIN_CORS,
  },
  plugins,
};