【问题标题】:firebase public directory errorfirebase公共目录错误
【发布时间】:2019-01-20 16:39:15
【问题描述】:

我正在尝试将网站的更新实例上传到我从合作者的 github 存储库中提取的 firebase。使用命令“firebase deploy”后出现以下错误:

=== 正在部署到“makany-webapp”...

我正在部署主机

错误指定的公共目录不存在,无法部署主机

这是 firebase.json 内容:

{
  "hosting": {
      "public": "www",
      "ignore": [
        "firebase.json",
        "**/.*",
        "**/node_modules/**"
      ],
      "rewrites": [
        {
          "source": "/public/**",
          "destination": "/public.html"
        },
        {
          "source": "**",
          "destination": "/index.html"
        }
      ]
    }
}

我正在尝试从 firebase.json 所在的目录进行部署。该目录包含一个“src”文件夹,其中包含 index.html 文件以及其他文件夹。

current directory and src directory

【问题讨论】:

  • 我相信我必须将我的 src 文件夹名称更改为 www

标签: firebase ionic-framework github firebase-hosting


【解决方案1】:

我的错。我不得不将我的 src 文件夹名称更改为 www

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-07-29
    • 1970-01-01
    • 2020-08-18
    • 1970-01-01
    • 2010-10-01
    • 2021-09-21
    • 2020-09-08
    • 2018-11-19
    相关资源
    最近更新 更多