firebase-hosting - FireBase not hosting index.html
问题描述
So I have followed all the steps and I am sure my steps are correct but still firebase is not hosting my index.html. it is showing default index.html which doesn't even exists. I have only index.html under my root folder and no matter how many times I do 'firebase init', it says that the project is hosted but no json file or dist file or any other file is ever created.
firebase login firebase init your-build-command-here firebase deploy
Tried all the above steps but didnt work. Need some help.
解决方案
将您的 html 放入 public/index.html 目录
并在 firebase 要求您覆盖 index.html 文件时输入 n
请按照以下网址中给出的步骤进行操作。
你也试试这些修复。
推荐阅读
- python - 将 Pandas 数据帧与索引连接起来,但可以选择根据列重新对齐
- cuda - 关于推力 remove_if 的问题
- google-apps-script - CELL CONTAINS TEXT 的 Google 脚本语法
- firebase - 是否可以在已安装的颤振应用程序上执行一些代码?
- android - 如何解决在android自定义布局通知中不显示通知文本的问题?
- ios - 如何在Swift中获得小数位数和加一?
- couchdb - /{db}/_all_docs 响应中的 id 和 key 字段有什么区别?
- node.js - Mongoose 中的正确方法 - 验证我的代码
- nginx - Magento 2.4.2 Ubuntu 18.04 Nginx PHP-FPM Varnish 缓存 http 站点下载文件,varnish 不起作用
- kubernetes - 仅创建少量资源后 Kubernetes 部署失败