Hi, I wanted to set up Multisite, but this bug seems to have other plans:
Pups::ExecError: cd /var/www/discourse && sudo -E -u discourse bundle exec rake otherside:migrate failed with return #<Process::Status: pid 776 exit 1>
Hi, I wanted to set up Multisite, but this bug seems to have other plans:
Pups::ExecError: cd /var/www/discourse && sudo -E -u discourse bundle exec rake otherside:migrate failed with return #<Process::Status: pid 776 exit 1>
not sure but maybe this will help
Do you have any plugins installed? Some are incompatible with multisite.
Wait what? It’s multisite
not otherside
?
I have renamed it to hide the name I am actually using there.
This has been taken care of! Apparently I also had to change the name of the $home/config/otherside.yml
Please elaborate on what you have been doing, I am missing your point completely.
You’ve been hiding a name? Renaming config files? And you didn’t think it was worth mentioning when you filed the support question?
I have the following configuration:
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
Instead of multisite
it said rubyhub
everywhere except as name of the .yml configuration file! Which caused the error!
But what is the http port, or how do I change it in the multisite so that I can set up an extra reverse proxy for rubyhub.store
?
Your can change it only for all sites, not just one.
How is that supposed to work? How is the web server supposed to know that another site is now being added? Reverse proxies cannot use the same port multiple times
You send all requests to the same place. I discourse can teeth from the headers which site it is
Under rubyhub.store
, however, comes no Discourse
Did you follow Multisite configuration with Docker?
Yes, I have followed