我最近使用以下命令部署了一个流星应用程序:
I recently deployed a meteor app using the following command:
$ meteor deploy example以及后来(认为是一样的)使用以下内容:
and later (thinking that it was the same) using the following:
$ meteor deploy www.example它最终会提供两个不同版本的应用,一个托管在example"中,另一个托管在www.example"中.
It end up serving two different versions of the app, one hosted in "example" and other hosted in "www.example".
我可以恢复其中一个部署吗?我应该还原哪个?
Can I revert one of the deploys? Which one should I revert?
如果没有,我应该在我的域名提供商上设置什么样的配置?
If not, what kind of configs should I set on my domain provider?
谢谢,若昂
推荐答案当人们访问您的页面时,您希望他们看到 mydomain 还是 www.mydomain?
When people go to your page, do you want them to see mydomain or www.mydomain?
如果它是 mydomain,那么您希望使用 A 记录设置您的 DNS 区域文件,该记录指向来源的 IP.流星网
If it's mydomain, then you want to set your DNS zone file with an A record for the domain that points to the IP of origin.meteor
如果它是 www.mydomain,那么您希望使用 CNAME 为指向 origin 的子域www"设置 DNS 区域文件.meteor
If it's www.mydomain, then you want to set your DNS zone file with a CNAME for the subdomain "www" that points to origin.meteor
然后,您想将域转发"从这些选项之一设置为另一个选项.例如,我设置了 playlistparty 转发到 www.playlistparty.
Then, you want to set "domain forwarding" from one of those choices to the other. For example, I've set up playlistparty to forward to www.playlistparty.
在此之后,您只需运行:
After this, you just run:
meteor deploy www.playlistparty您可以使用 --delete 选项删除不使用的部署.
You can delete the deployment you won't be using with the --delete option.
meteor deploy www.playlistparty --delete更多推荐
Meteor.js 部署到“example.com"或“www.example.com"?
发布评论