안녕하세요, 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>
확신은 없지만 이 링크가 도움이 될 수도 있습니다
플러그인이 설치되어 있나요? 일부 플러그인은 멀티사이트와 호환되지 않습니다.
잠깐, 뭐? otherside가 아니라 multisite였어?
실제로 사용하는 이름을 숨기기 위해 이름을 변경했습니다.
해결되었습니다! $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 <<< "alter schema public owner to discourse;"'
- exec: /bin/bash -c 'sudo -u postgres psql discourse_rubyhub <<< "create extension if not exists hstore;"'
- exec: /bin/bash -c 'sudo -u postgres psql discourse_rubyhub <<< "create extension if not exists pg_trgm;"'
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
.yml 구성 파일의 이름으로만 multisite라고 되어 있었고, 그 외 모든 곳에서 rubyhub라고 되어 있었습니다! 이로 인해 오류가 발생했습니다!
하지만 HTTP 포트는 무엇이며, rubyhub.store를 위한 추가 리버스 프록시를 설정할 수 있도록 멀티사이트(multisite)에서 이를 어떻게 변경해야 하나요?
개별 사이트가 아니라 모든 사이트에만 변경할 수 있습니다.
그건 어떻게 동작하는 건가요? 웹 서버가 새로운 사이트가 추가되었음을 어떻게 알 수 있을까요? 리버스 프록시는 같은 포트를 여러 번 사용할 수 없거든요.
모든 요청을 동일한 위치로 보냅니다. 저는 헤더에서 어느 사이트인지 파악할 수 있습니다.
그러나 rubyhub.store에는 Discourse가 없습니다
Docker를 사용한 멀티사이트 구성을 따랐나요?
네, 따랐습니다.