管理者として、そのオプションを強制することも可能でしょうか?タグはフォーラム体験の一部であり、タグがないと一部のユーザーはトピックに関する追加の文脈を見逃してしまうからです。トピックの詳細がリッチになったHorizonテーマがとても気に入っています ![]()
有効にできる「抜粋(Excerpts)」に関する部分、Enable with bin/rails r ‘SiteSetting.always_include_topic_excerpts = true’ は私には機能していないようです。
/var/www/discourse# bin/rails r ‘SiteSetting.always_include_topic_excerpts = true’
fatal: detected dubious ownership in repository at '/var/www/discourse'
To add an exception for this directory, call:
git config --global --add safe.directory /var/www/discourse
/var/www/discourse/config/initializers/000-pg_connection_patch.rb:21:in `rescue in new_client': We could not find your database: discourse. Available database configurations can be found in config/database.yml. (ActiveRecord::NoDatabaseError)
To resolve this error:
- Did you not create the database, or did you delete it? To create the database, run:
bin/rails db:create
- Has the database name changed? Verify that config/database.yml contains the correct database name.
これ以上いじりたくないので、そのままにしておくつもりです。ただし、私のセットアップが壊れているか、Discourse側で修正できる点がある場合に備えて、エラーをここに残しておきます。