在 DigitalOcean Droplet 上通过子域名安装了 Discourse。如何为根域名添加 Node/Vue.js?

我已在通过 20 美元 DigitalOcean Droplet 创建的“论坛”子域上成功安装了 Discourse。

我现在能否在我的主域名(https://www.example.com)上创建一个网站?即使只是一个静态 HTML 页面也可以。我计划将其用作 forum.example.com 上 Discourse 安装版的注册落地页,之后我将导入电子邮件并发送邀请。

使用 Netlify,我可以轻松地将我的实时网站与 GitHub 仓库的提交同步。DigitalOcean 上有类似的功能吗?

感谢任何建议!

Welcome, @4ndy! Glad you got things set up.

Sure, you can do whatever you want with www.example.com on whatever server anywhere in the world. Having Discourse on forum.example.com doesn’t affect your www site at all, so you can use whatever that Digital Ocean provides or whatever. Maybe you want to use github pages for your landing page, for example.

Thanks Jay,
I guess my question is more on the DigitalOcean side. Seemed like a lot of Discourse users went the same route I did (Following github tutorial to setup Discourse on $5 DO Droplet on a subdomain).

Just can’t find any good tutorials out there on after a user installs on a subdomain, let’s now setup a node/git repo workflow on the main domain.

Discourse led me to DigitalOcean, so not really experienced with either of these technologies yet.
I’ll keep digging. :wink:

It doesn’t matter that you have Discourse on a subdomain. You can put whatever you want, however you want, on your apex domain and Discourse won’t know or care. Just create the site, any way you can find out to create a site on the internet, and point your domain there.

Just don’t delete your current Discourse A record.