أخطاء Pups::Exec

مرحباً، أردت إعداد 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.

إعجاب واحد (1)

انتظر ماذا؟ إنه multisite وليس otherside؟

لقد قمت بإعادة تسميته لإخفاء الاسم الذي أستخدمه بالفعل هناك.

تم الاهتمام بهذا! يبدو أنني اضطررت أيضًا إلى تغيير اسم $home/config/otherside.yml

من فضلك، وضّح ما كنت تفعله، فأنا لا أفهم وجهة نظرك على الإطلاق.
هل كنت تخفي اسمًا؟ هل قمت بإعادة تسمية ملفات التكوين؟ ولم تعتقد أن الأمر يستحق الذكر عند تقديم سؤال الدعم؟

إعجاب واحد (1)

لدي التكوين التالي:

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 ، ذكرت rubyhub في كل مكان باستثناء اسم ملف التكوين .yml! هذا ما تسبب في الخطأ!

ولكن ما هو منفذ HTTP ، أو كيف يمكنني تغييره في multisite حتى أتمكن من إعداد وكيل عكسي إضافي لـ rubyhub.store؟

إعجاب واحد (1)

يمكنك تغييره لجميع المواقع فقط، وليس لموقع واحد.

كيف يفترض أن يعمل ذلك؟ كيف يفترض بخادم الويب أن يعرف أنه تتم إضافة موقع آخر الآن؟ لا يمكن للوكلاء العكسيين استخدام نفس المنفذ عدة مرات.

أنت ترسل جميع الطلبات إلى نفس المكان. يمكنني التمييز من الرؤوس أي موقع هو

إعجاب واحد (1)

تحت rubyhub.store، ولكن لا يأتي أي Discourse

إعجاب واحد (1)

هل اتبعت إعدادات مواقع متعددة مع Docker؟

إعجابَين (2)

نعم، لقد اتبعت

إعجاب واحد (1)