# שגיאה בהגדרה עם Redis נפרד

**URL:** <https://meta.discourse.org/t/error-setting-up-with-separate-redis/260859>\
**Category:** Self-hosting\
**Created:** [6 באפריל,‏ 2023,‏ 6:32pm UTC](https://meta.discourse.org/t/error-setting-up-with-separate-redis/260859 "2023-04-06T18:32:34Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![silverdr](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@silverdr](https://meta.discourse.org/u/silverdr)\
**Post date:** [6 באפריל,‏ 2023,‏ 6:32pm UTC](https://meta.discourse.org/t/error-setting-up-with-separate-redis/260859/1 "2023-04-06T18:32:35Z")

</div>

There is a half-lazy database server running PostgreSQL inside local network and I wanted to use it for Discourse too. Reason for this is that the web server, is far more stressed than the previously mentioned database one, which still has a lot of unused resources/potential. Redirecting Discourse’s PostgreSQL was quite easy, following a few threads on this forum ([example](https://meta.discourse.org/t/configure-discourse-to-use-a-separate-postgresql-server/46375)). Whenever I try to do the same for Redis though:

- commenting out `- "templates/redis.template.yml"`
- setting `DISCOURSE_REDIS_HOST` instead

I always get:

```plaintext
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 582 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
bootstrap failed with exit code 1

```

whenever I try to rebuild with `launcher rebuild app`

Is this a known issue? Anyone successfully running Discourse with non-containerised Redis?

---

_[View the full topic](https://meta.discourse.org/t/error-setting-up-with-separate-redis/260859)._
