无法在 Firebase 中部署 ember 应用

Cannot deploy ember app in Firebase

我无法在 Firebase 中部署我的 ember 应用程序。我只能看到 Firebase 托管的欢迎页面:

You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!

我已经安装了 EmberFire 附加组件以及 Firebase 工具。

我的配置文件如下所示:

    module.exports = function(environment) {
      var ENV = {
        modulePrefix: 'sample',
        environment: environment,
        rootURL: '/',
        locationType: 'auto',
    
        firebase : {
        apiKey: 'xxxxxx',
        authDomain: 'xxxxx',
        databaseURL: 'xxxx',
        storageBucket: 'xxxxx',
        messagingSenderId: 'xxxxx'
    }, 
        EmberENV: {
          FEATURES: {
            // Here you can enable experimental features on an ember canary build
            // e.g. 'with-controller': true
          }
        },
    
        APP: {
          // Here you can pass flags/options to your application instance
          // when it is created
        }
      };
      
      if (environment === 'development') {
        // ENV.APP.LOG_RESOLVER = true;
        ENV.APP.LOG_ACTIVE_GENERATION = true;
        ENV.APP.LOG_TRANSITIONS = true;
        ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
        ENV.APP.

LOG_VIEW_LOOKUPS = true;
  }

Firebase.json:

{
  "database": {
    "rules": "database.rules.json"
  },
  "hosting": {
    "public": "dist",
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]
  }
}

我已经使用以下命令构建并部署了应用程序:

ember build --prod

firebase login

firebase init

firebase deploy

提前致谢:-)

当您第一次使用 firebase init 命令初始化 ember.js 应用程序时,系统会提示您

? File dist/index.html already exists. Overwrite? (y/N) 

回答否。
回答是将允许默认的 firebase 托管欢迎页面覆盖您的 ember 应用程序 index.html 文件,这就是为什么您仍然会收到 firebase托管欢迎页面。