# 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:** 3

<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, 12:53pm UTC](https://meta.discourse.org/t/postgres-connection-error-on-bundle-exec-rails-c/222153/3 "2022-03-28T12:53:36Z")

</div>

Thanks, I guess I mixed up both - I was doing bundle exec from within the app.

Still struggling though. I’m looking to change the IP regex for the [prometheus exporter plugin](https://meta.discourse.org/t/prometheus-exporter-plugin-for-discourse/72666).

Not sure which syntax is good to use. I tried

`SiteSetting.prometheus_trusted_ip_allowlist_regex=1.2.3.4` with escaping backslashes and quotes around it but nothing worked. 1.2.3.4 being a placeholder of my real IP.

---

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