【问题标题】:Firebase hosting application deployFirebase 托管应用程序部署
【发布时间】:2021-05-09 05:30:17
【问题描述】:

我尝试使用 Firebase 部署我的应用程序(在构建文件夹中我有一个 index.html 文件),但我收到以下错误:

有谁知道哪里出了问题?

【问题讨论】:

    标签: firebase vuejs2 webdeploy


    【解决方案1】:

    这实际上是您初始化项目时 Firebase CLI 自动生成的 index.html 文件中的默认内容。这不是错误;如果您已经准备好 HTML,只需将其粘贴到您的 build 文件夹中的 index.html 文件中即可。

    您的屏幕截图显示了本地index.html 文件,请确保通过运行firebase deploy --only hosting 来部署您的站点;还要仔细检查firebase.json 文件中的public 属性是否配置为使用build 文件夹。

    【讨论】:

    • 那么我缺少哪些步骤 - 我需要用我的项目中的那个替换 index.html 文件,然后呢?
    • 然后通过运行firebase deploy --only hosting来部署您的站点
    猜你喜欢
    • 1970-01-01
    • 2021-01-06
    • 1970-01-01
    • 2019-07-11
    • 2019-10-10
    • 1970-01-01
    • 2019-07-11
    • 2020-12-25
    • 2020-10-20
    相关资源
    最近更新 更多