相关疑难解决方法(0)

Firebase 托管在部署 Angular 6 应用程序后显示欢迎页面?

我想开发 angular 6 应用程序,但在部署 firebase 后只显示欢迎页面。

以下是我为部署而采取的步骤。

  1. 安装了 firebase-tools
  2. ng build --prod(在我的应用中)
  3. 火力初始化
  4. 你准备好继续了吗?(是/否) 是
  5. (*) 托管:配置和部署 Firebase 托管站点
  6. 你想用什么作为你的公共目录?(公共)区
  7. 配置为单页应用程序(将所有 url 重写为 /index.html)?(y/N) 是
  8. 文件 dist/index.html 已经存在。覆盖?(y/N) 是
  9. Firebase 初始化完成!
  10. 在这一步中,我已经删除了 dist 文件夹并ng build --prod再次运行
  11. angular build app 在dist目录内的子文件夹中,因此我将包含 index.html 的子目录中的所有内容复制到dist/.
  12. 火力基地部署
  13. firebase 开放式主机:网站

但在完成所有这些之后,我仍然在链接中看到欢迎页面。

我究竟做错了什么!?

firebase firebase-hosting angular

8
推荐指数
2
解决办法
3513
查看次数

Firebase 托管不生成 firebase.json

I'm trying to host a website in Firebase Hosting (free plan), I followed the steps but it does not generate the file firebase.json

my steps

1- firebase login Already logged in as r*****@gmail.com

2- firebase init

 ######## #### ########  ######## ########     ###     ######  ########
 ##        ##  ##     ## ##       ##     ##  ##   ##  ##       ##
 ######    ##  ########  ######   ########  #########  ######  ######
 ##        ##  ##    ##  ##       ##     ## ##     ##       ## ##
 ##       #### ##     ## ######## ######## …
Run Code Online (Sandbox Code Playgroud)

firebase firebase-hosting

3
推荐指数
1
解决办法
6995
查看次数

标签 统计

firebase ×2

firebase-hosting ×2

angular ×1