简体   繁体   English

Firebase 托管未更新连接的域

[英]Firebase Hosting not updating connected domain

I'm hosting a web app with Firebase hosting service.我正在使用 Firebase 托管服务托管一个网络应用程序。

I build my app and then deploy it using firebase command tools.我构建了我的应用程序,然后使用 firebase 命令工具部署它。

The build is successful and the firebase domain shows the update: https://calmeet-a7271.firebaseapp.com/e/-KsC5suhESWNwzYw6rtq构建成功,firebase 域显示更新: https : //calmeet-a7271.firebaseapp.com/e/-KsC5suhESWNwzYw6rtq

But the connected domain doesn't show the update: https://calmeet.co但是连接的域没有显示更新: https : //calmeet.co

You can see the difference in these two links by the Settings (cog) button on the top right.您可以通过右上角的设置(齿轮)按钮查看这两个链接的区别。https://calmeet-a7271.firebaseapp.com/e/-KsC5suhESWNwzYw6rtq has the settings button while https://calmeet.co does nothttps://calmeet-a7271.firebaseapp.com/e/-KsC5suhESWNwzYw6rtq有设置按钮,而https://calmeet.co没有

I'm not sure what I'm doing wrong, I thought this would be automatic.我不确定我做错了什么,我认为这会是自动的。 DNS seem to be working alright. DNS 似乎工作正常。 I don't see any error in firebase我在 firebase 中没有看到任何错误

I had this same issue.我有同样的问题。 It was caused by doing back to back ng-build and firebase deploy commands in the terminal.这是由于在终端中背靠背执行 ng-build 和 firebase deploy 命令造成的。

Turns out chrome was caching my connected site.原来 chrome 正在缓存我连接的网站。 If I opened it in a different browser (safari) it would update.如果我在不同的浏览器(safari)中打开它,它会更新。 Another way to fix it in chrome is to clear recent browsing data by going to your browser toolbar, clicking More and then More Tools and then Clear Browsing Data.在 chrome 中修复它的另一种方法是通过转到浏览器工具栏,单击更多,然后单击更多工具,然后单击清除浏览数据来清除最近的浏览数据。

Short answer, Clear caching browse and try again or open another browser.简短的回答,清除缓存浏览并重试或打开另一个浏览器。

Hope this help.希望这有帮助。

Just do a hard refresh ( cmd + shift + r ) on your website on Chrome.只需在 Chrome 上的网站上进行硬刷新( cmd + shift + r )。 That worked for me.那对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM