在已有 Nginx 的机器上设置 Discourse

我有一台运行 Nginx 托管网站的专用服务器。我尝试按照链接指南(https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md)进行操作,但在运行 ./discourse-setup 命令后,该命令停止并显示一条消息,引导我访问一个链接(Run other websites on the same machine as Discourse app.yml 文件,但该文件并不存在,因为 setup 命令未能成功启动。
https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md

您可以复制 samples/standalone.yml。

您可以编辑 discourse-setup 以跳过测试。

您可以暂时禁用 Web 服务器,以便运行 discourse-setup。

让 Discourse 正常运行是您正在尝试的高级配置中最简单的部分。

请查看 https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247。我相信还有一个专门针对 Nginx 的讨论主题。

感谢您的回复。

我不太明白这句话的意思。我实际上已经按照您提到的步骤操作了,但现在,当我输入 ./launcher rebuild app 后,过一会儿会出现另一个错误,提示:" [2019-07-02T11:51:07.931930 #16] INFO – : > cd /var/www/discourse && gem update bundler
ERROR: While executing gem … (Gem::RemoteFetcher::UnknownHostError)
timed out (https://rubygems.org/specs.4.8.gz)"

那是另一个问题。

这可能意味着您的服务器存在网络或 DNS 问题。

但是,我在这台服务器上已经运行了另一个 Web 应用程序。我甚至无法执行命令 “./launcher enter app”,因为我没有为我启动并运行的容器。

编辑:我认为我的问题在于,为我的容器在主机上创建 nginx 配置并未生效,我无法设置反向代理。