Discourse Rails database.yml for Production

People,

I have this dev block:

development:
  prepared_statements: false
  adapter: postgresql
  database: <%= ENV['DISCOURSE_DEV_DB'] || 'discourse_development' %>
  min_messages: warning
  pool: 5
  timeout: 5000
  checkout_timeout: <%= ENV['CHECKOUT_TIMEOUT'] || 5 %>
  advisory_locks: false # Disable until https://github.com/rails/rails/issues/40029 has beeen resolved.
  host_names:
    ### Don't include the port number here. Change the "port" site setting instead, at /admin/site_settings.
    ### If you change this setting you will need to
    ###   - restart sidekiq if you change this setting
    ###   - rebake all to posts using: `RAILS_ENV=production bundle exec rake posts:rebake`
    - "localhost"

I presume the only line I need to change (aside from the first line) for copy / pasting a production block is the “database:” line?

Thanks,

Phil.

1 Like

There is a note at the bottom of that file here

It looks like you would be better off asking this question over at meta.discourse.org. If you are wanting to self-host Discourse though, you shouldn’t have to fork and change any files.

@markvanlan ,

OK, I will ask someone there . .

It was sort of an exercise - I wanted a Fedora build running in a Podman container - which I have working now:

and in case anyone wants to clone the Docker file and the notes - go here:

git@gitlab.com:philip_rhoades/fpsd.git

1 Like