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

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [March 28, 2022, 12:43pm UTC](https://meta.discourse.org/t/postgres-connection-error-on-bundle-exec-rails-c/222153/2 "2022-03-28T12:43:56Z")

</div>

I get to the rails console from the server by using:

```plaintext
cd /var/discourse
./launcher enter app
rails c

```

There’s an example of changing a site setting in this topic, [Enable setting to allow admins to permanently delete data](https://meta.discourse.org/t/enable-the-hidden-can-permanently-delete-site-setting/206678) (this one is a hidden one, but the method is the same)

---

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