如何从Firebase托管中删除html文件? [英] How do you remove html files from Firebase Hosting?
本文介绍了如何从Firebase托管中删除html文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
示例:
我在Firebase托管中有三个html文件:
I have three html files in firebase hosting:
- index.html
- test1.html
- test2.html
问题:
如何删除HTML文件test1.html?我很困惑要删除它, 是否设置json文件firebase.json或还有其他方法? 谢谢您的帮助
How to remove html files test1.html ? I was confused to remove that, whether to set the json file firebase.json or there are other ways? Thanks for your help
推荐答案
根据要删除的数量,您有两种选择:
Depending on how much you want to remove, you have a couple options:
删除文件
要删除单个文件,请在本地将其删除并重新部署.
To remove a single file, delete it locally and re-deploy.
$ rm public/foo.html
$ firebase deploy
禁用托管
如果您要在Firebase托管上删除整个网站,则可以完全禁用托管.
If you want to remove an entire site on Firebase hosting, you can 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.
这篇关于如何从Firebase托管中删除html文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文