Below is my app.yml for 2nd site ( First site is using default - discourse_hostname)
before_bundle_exec:
- file:
path: $home/config/multisite.yml
contents: |
secondsite:
adapter: postgresql
database: b_discourse
pool: 25
timeout: 5000
db_id: 2
host_names:
- community.mydomain.com
I just realized “RAILS_DB=b_discourse rails console” is also connecting to first database