안녕하세요 여러분!
오프라인에서 Discourse를 설치하는 과정에서 특정 단계에서 오류가 발생합니다:
[2020-05-05T17:36:59.349388 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4 --verbose'
Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4 --verbose' failed with return #<Process::Status: pid 340 exit 17>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["cp -rv /local-rubygems.org/ruby/* $home/vendor/bundle/ruby/", "su discourse -c 'bundle config set deployment \"true\"'", "su discourse -c 'bundle config set without \"development test\"'", "su discourse -c 'bundle install --retry 3 --jobs 4 --verbose'"]}
6637602e5976e07b9e36197d0f6d55a38d528df1688e7fc87173d30aec4e28a5
** 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.
하지만 저는 이 명령을 실행했습니다:
docker run -it -v ~/local/rubygems.org:/local-rubygems local_discourse/app /bin/bash
cp -r /var/www/discourse/vendor/bundle/ruby /local-rubygems
그 후에 로컬에서 ruby가 실행되지 않을까요? 서버에는 인터넷 연결에 문제가 없습니다. 어떤 설정을 꺼야 하고, 외부 사이트로의 접속을 막아야 한다는 내용은 어디에 명시되어 있나요?