How do you remove html files from Firebase Hosting?

后端 未结 1 854
盖世英雄少女心
盖世英雄少女心 2021-01-14 02:30

Example:

I have three html files in firebase hosting:

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

Question:

How to remov

1条回答
  •  别那么骄傲
    2021-01-14 02:56

    Depending on how much you want to remove, you have a couple options:

    Remove a file

    To remove a single file, delete it locally and re-deploy.

    $ rm public/foo.html
    $ firebase deploy
    

    Disable hosting

    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.
    

    0 讨论(0)
提交回复
热议问题