こんにちは、Multisiteの設定をしようとしたのですが、このバグが邪魔をしているようです。
Pups::ExecError: cd /var/www/discourse && sudo -E -u discourse bundle exec rake otherside:migrate failed with return #<Process::Status: pid 776 exit 1>
こんにちは、Multisiteの設定をしようとしたのですが、このバグが邪魔をしているようです。
Pups::ExecError: cd /var/www/discourse && sudo -E -u discourse bundle exec rake otherside:migrate failed with return #<Process::Status: pid 776 exit 1>
わからないですが、これが役立つかもしれません。
プラグインはインストールされていますか?マルチサイトと互換性のないものもあります。
え? multisite ではなく otherside なのですか?
名前を実際の使用名から変更しました。
これで対応できました! $home/config/otherside.yml の名前も変更する必要があったようです。
何をしているのか詳しく教えてください。あなたの言っていることが全く分かりません。
名前を隠していたのですか?設定ファイルをリネームしていたのですか?そして、サポート質問を提出したときに、それに言及する価値がないと思ったのですか?
以下のような設定があります。
hooks:
after_postgres:
- exec: sudo -u postgres createdb discourse_rubyhub || exit 0
- exec:
stdin: |
grant all privileges on database discourse_rubyhub to discourse;
cmd: sudo -u postgres psql discourse_rubyhub
raise_on_fail: false
- exec: /bin/bash -c 'sudo -u postgres psql discourse_rubyhub <<EOF "alter schema public owner to discourse;"EOF'
- exec: /bin/bash -c 'sudo -u postgres psql discourse_rubyhub <<EOF "create extension if not exists hstore;"EOF'
- exec: /bin/bash -c 'sudo -u postgres psql discourse_rubyhub <<EOF "create extension if not exists pg_trgm;"EOF'
after_code:
- exec:
cd: $home/plugins
cmd:
- mkdir -p plugins
- chmod -R 755 plugins
# Official
- git clone https://github.com/discourse/docker_manager.git
- git clone https://github.com/discourse/discourse-adplugin.git
- git clone https://github.com/discourse/discourse-solved.git
- git clone https://github.com/discourse/discourse-topic-voting.git
- git clone https://github.com/discourse/discourse-post-voting.git
- git clone https://github.com/discourse/discourse-oauth2-basic.git
- git clone https://github.com/discourse/discourse-data-explorer.git
- git clone https://github.com/discourse/discourse-spoiler-alert.git
- git clone https://github.com/discourse/discourse-whos-online.git
- git clone https://github.com/discourse/discourse-calendar.git
- git clone https://github.com/discourse/discourse-ai.git
- git clone https://github.com/discourse/discourse-checklist.git
- git clone https://github.com/discourse/discourse-staff-alias.git
- git clone https://github.com/discourse/discourse-assign.git
- git clone https://github.com/discourse/discourse-shared-edits.git
- git clone https://github.com/discourse/discourse-translator.git
- git clone https://github.com/discourse/discourse-theme-creator.git
# Paviliondev
- git clone https://github.com/paviliondev/discourse-discord-bot.git
- git clone https://github.com/paviliondev/discourse-ratings.git
- git clone https://github.com/paviliondev/discourse-multilingual.git
- git clone https://github.com/paviliondev/discourse-news.git
- git clone https://github.com/paviliondev/discourse-events.git
- git clone https://github.com/paviliondev/discourse-layouts.git
- git clone https://github.com/paviliondev/discourse-custom-wizard.git
# Coopcreds
- git clone https://github.com/coopcreds/discourse-verifiable-credentials.git
before_bundle_exec:
- file:
path: $home/config/multisite.yml
contents: |
multisite:
adapter: postgresql
database: discourse_rubyhub
pool: 25
timeout: 5000
db_id: 2
host_names:
- rubyhub.store
after_bundle_exec:
- exec: cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate
multisite の代わりに、.yml 設定ファイルの名前を除いて、すべて rubyhub となっていました。これがエラーの原因でした!
しかし、HTTPポートは何ですか、または rubyhub.store 用に追加のリバースプロキシを設定できるように、multisiteでそれをどのように変更できますか?
1つのサイトだけでなく、すべてのサイトで変更できます。
それはどのように機能するはずですか? ウェブサーバーは、別のサイトが追加されていることをどのように認識するのですか? リバースプロキシは同じポートを複数回使用できません。
すべてのリクエストは同じ場所に送信されます。ヘッダーからどのサイトか判断できます。
rubyhub.store の下には、Discourse はありません
Docker を使用したマルチサイト構成に従いましたか?
はい、従いました