Qualcuno esegue il multisito con postgres esterno?
Ho una configurazione multisite come questa:
before_bundle_exec:
- file:
path: $home/config/multisite.yml
contents: |
example:
adapter: postgresql
database: example
pool: 5
timeout: 5000
host_names:
- example.com
Vedo:
I, [2024-07-01T10:26:26.110357 #1] INFO -- : Multisite migrator is running using 1 threads
Migrating default
Migrating example
Poi la ricostruzione fallisce su:
cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate failed with return #<Process::Status: pid 433 ex\nit 1>
Quando controllo il database, vedo che le tabelle per il database discourse predefinito sono state create, ma nessuna delle altre.
Devo in qualche modo aggiungere anche l’host e la porta postgres alla sezione multisite sopra invece di fare affidamento sulla sezione principale in env? Se sì, qual è la sintassi corretta per host, porta, nome utente e password del database?