# Postgres connection error on 'bundle exec rails c'

**URL:** <https://meta.discourse.org/t/postgres-connection-error-on-bundle-exec-rails-c/222153>\
**Category:** Self-hosting\
**Created:** [March 28, 2022, 12:24pm UTC](https://meta.discourse.org/t/postgres-connection-error-on-bundle-exec-rails-c/222153 "2022-03-28T12:24:00Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![helmi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/helmi/32/114772_2.png) [@helmi](https://meta.discourse.org/u/helmi)\
**Post date:** [March 28, 2022, 2:14pm UTC](https://meta.discourse.org/t/postgres-connection-error-on-bundle-exec-rails-c/222153/6 "2022-03-28T14:14:14Z")

</div>

Correct me if I’m wrong but I thought I could set it on runtime first. So I need to set it on app.yml first to then be able to modify it on runtime?

The forum is quite busy so I was hoping to be able to set it on runtime first before setting it permanently in the ENV.

Any hints about the syntax? Can this just be

```plaintext
DISCOURSE_PROMETHEUS_TRUSTED_IP_ALLOWLIST_REGEX: 123.145.167.189

```

---

_[View the full topic](https://meta.discourse.org/t/postgres-connection-error-on-bundle-exec-rails-c/222153)._
