Postgres connection error on 'bundle exec rails c'

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.

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.