Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable locally #348

Open
macrozone opened this issue Dec 10, 2019 · 1 comment
Open

disable locally #348

macrozone opened this issue Dec 10, 2019 · 1 comment

Comments

@macrozone
Copy link

Issues include as much detail as possible:

I noticed that when you have no redis locally, it logs some connection error to redis, but the app is in an unkown state: publications work, but they won't be reactive.

As redis oplog is a production improvement, its nice to be able to test it, but it should not be a requirement that every developer needs to run it locally.

Is it possible to disable it locally so that it fallsback to meteors normal behaviour?

@edemaine
Copy link

edemaine commented Sep 10, 2020

If I'm reading the code correctly, it will do nothing if redisOplog isn't in settings.json (and no REDIS_OPLOG_SETTINGS environment variable is set). So if you're testing locally via meteor (without --settings settings.json), or if you use a non-Redis settings.json, you should be able to test locally with Redis.

However, if you have the disable-oplog package installed, you also won't get oplog tailing in your local dev server. (I'm guessing this is what #274 was getting at.) But it still works, maybe just not as fast.

But see #357 when using fine-tuning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants