我正在尝试在我的笔记本电脑上安装 Discourse,以便在对我的真实版本进行更改之前进行一些测试。(编写将在真实 Docker 实例上运行的脚本)
我的笔记本电脑没有域名,因此我无法获得 Let’s Encrypt SSL 证书。
如何安装一个仅限 HTTP 的实例?
我注释掉了 app.yaml 中的 SSL 行,并尝试在 ./discourse-setup --skip-connection-test 中绕过 SSL,但引导失败:
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile' failed with return #<Process::Status: pid 3649 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"assets_precompile", "cmd"=>["su discourse -c 'bundle exec rake themes:update assets:precompile'"]}
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.