0
我无法在Firebase中部署我的应用程序应用程序。我只能看到Firebase托管服务的欢迎页面:无法在Firebase中部署应用程序应用程序
您看到这个是因为您已成功设置Firebase托管服务。现在是时候建立一些非凡的东西了!
我已经安装了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"
}
]
}
}
我已经建立了应用和部署使用以下命令:
烬建设 - prod
firebase登录
火力初始化
火力部署
在此先感谢:-)