omnivore icon indicating copy to clipboard operation
omnivore copied to clipboard

fix: resolve local redis and docker build errors

Open rbarbazz opened this issue 4 months ago • 1 comments

I encountered a couple of issues when running the app locally, which this PR addresses:

  1. Fix for MacBook M1 build issue (commit: 81dbccacca90818f9377e26609afb7e081179d5d, closes #3315):

    • On a MacBook Air M1 8GB, I ran into the issue described in #3315. This commit resolves it.
    • The change mirrors an existing step in the runner stage, so it should not affect the current build pipeline.
  2. Fix for Redis connection error (commit: f7ae2a44c7793774debe8cff1f676020de83308f):

    • While running docker compose up api content-fetch, I encountered this error:
      omnivore-api            | [ioredis] Unhandled error event: Error: connect ENOENT %27redis://redis:6379%27
      omnivore-api            |     at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1494:16)
      
    • Removing the single quotes around the default REDIS_URL fixed the issue. Edit: I just noticed there's already another PR that implements this fix https://github.com/omnivore-app/omnivore/pull/4378, happy to revert.

rbarbazz avatar Oct 24 '24 18:10 rbarbazz