【问题标题】:How do you remove html files from Firebase Hosting?如何从 Firebase 托管中删除 html 文件?
【发布时间】:2017-01-05 05:52:01
【问题描述】:

例子:

我在 firebase 托管中有三个 html 文件:

  1. index.html
  2. test1.html
  3. test2.html

问题:

如何删除 html 文件 test1.html ?我很困惑要删除它, 是设置json文件firebase.json还是有其他方法? 感谢您的帮助

【问题讨论】:

  • 删除这些文件并运行firebase deploy。不行吗?
  • 好的,谢谢,可以了

标签: firebase firebase-hosting


【解决方案1】:

根据您要删除的数量,您有几个选择:

删除文件

要删除单个文件,请将其在本地删除并重新部署。

$ rm public/foo.html
$ firebase deploy

禁用托管

如果您想删除 Firebase 托管上的整个网站,您可以disable hosting entirely

$ firebase hosting:disable
? Are you sure you want to disable Firebase Hosting?
  This will immediately make your site inaccessible! Yes
✔  Hosting has been disabled for example-firebase. Deploy a new version to re-enable.

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-07-24
    • 2016-11-07
    • 1970-01-01
    • 2018-03-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-26
    相关资源
    最近更新 更多