托管项目

时间:2021-01-23 11:02:31

标签: firebase flutter dart firebase-hosting

我在使用 Firebase 托管时遇到问题。 托管网址未显示我的项目。

当我在项目文件夹中输入“firebase deploy”时,有:

i  deploying hosting
i  hosting[fanclip-6aa2d]: beginning deploy...
i  hosting[fanclip-6aa2d]: found 2 files in build/web
+  hosting[fanclip-6aa2d]: file upload complete
i  hosting[fanclip-6aa2d]: finalizing version...
+  hosting[fanclip-6aa2d]: version finalized
i  hosting[fanclip-6aa2d]: releasing new version...
+  hosting[fanclip-6aa2d]: release complete

+  Deploy complete!

Project Console: [consoleurl]
Hosting URL: [hosturl]

然后我按hosturl,然后我被重定向到这里:

enter image description here

我不知道为什么它没有向我展示我的 Flutter 项目。

提前致谢

解决方案:

当我使用命令 Firebase init 在项目中初始化 Firebase 时,出现了一个任务 文件 build/web/index.html 已经存在。覆盖? 我的回答是肯定的,而所需的答案是否定的

0 个答案:

没有答案