Let's Encrypt를 사용하고 리버스 프록시 없이 멀티사이트 구성 설정하기

단일 웹사이트 표준 설정은 완벽하게 작동합니다. 문제없습니다.
하지만 멀티사이트를 위해 많은 조합을 시도해 보았습니다. 단일 app.yml 구성 또는 web_only.yml, data.yml로 분리하는 방식 등… Docker를 사용한 멀티사이트 구성이나 스탠드얼론 컨테이너에서 웹과 데이터 컨테이너로 분리하기에 대한 다른 팁들도 시도해 보았습니다.

마이그레이션 부분의 경우, 모든 조합이 항상 실패했습니다… >>>> bundle exec rake multisite:migrate

********************** 프로세스의 마지막 부분**************************
2023-02-11 17:50:43.853 UTC [61] LOG:  shutting down
162:M 11 Feb 2023 17:50:43.866 # User requested shutdown...
162:M 11 Feb 2023 17:50:43.866 * Saving the final RDB snapshot before exiting.
162:M 11 Feb 2023 17:50:43.881 * DB saved on disk
162:M 11 Feb 2023 17:50:43.882 # Redis is now ready to exit, bye bye...
2023-02-11 17:50:44.007 UTC [57] LOG:  database system is shut down


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate failed with return #<Process::Status: pid 582 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.1.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params "cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate"
bootstrap failed with exit code 1
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.

실패 시점까지 무엇이 생성되고 무엇이 생성되지 않았는지 확인해 보았습니다.
서브도메인 데이터베이스는 생성되었지만 마이그레이션이 실패했습니다. overlay2 폴더나 다른 위치를 확인해 보았을 때 서브도메인 nginx 설정 파일이나 multisite.yml이 생성되지 않았습니다.

./launcher bootstrap, destroy, start, stop, rebuild 또는 fresh setup을 여러 번 실행해 보았습니다… 모든 명령어를 시도해 보았지만 아무런 변화가 없었습니다… :slight_smile:

이 튜토리얼은 여전히 v3.1.0.beta 2에 유효한가요, 아니면 제가 무엇을 놓치고 있는 걸까요?
어떤 아이디어라도 있으면 알려주세요?

1개의 좋아요