如何从 Firebase 托管中删除 html 个文件?
How do you remove html files from Firebase Hosting?
示例:
我在 firebase 托管中有三个 html 文件:
- index.html
- test1.html
- test2.html
问题:
如何删除 html 个文件 test1.html?我很困惑删除它,
是设置json文件firebase.json还是有其他方法?
感谢您的帮助
根据您要删除的数量,您有两种选择:
删除文件
要删除单个文件,请在本地删除它,然后 re-deploy。
$ 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.
示例:
我在 firebase 托管中有三个 html 文件:
- index.html
- test1.html
- test2.html
问题:
如何删除 html 个文件 test1.html?我很困惑删除它, 是设置json文件firebase.json还是有其他方法? 感谢您的帮助
根据您要删除的数量,您有两种选择:
删除文件
要删除单个文件,请在本地删除它,然后 re-deploy。
$ 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.