0
第一次這樣做,所以我不知道該怎麼做。如何讓Ember index.html出現在dist目錄中而不是Firebase歡迎頁面上?
我初始化了firebase,將dist設置爲公用文件夾,運行ember build -prod
,然後firebase deploy
。
我看到頁面歡迎我到firebase託管,但我想知道如何從我的Ember應用程序獲取index.html而不是firebase添加的index.html。
這是我的firebase.json文件:
{
"database": {
"rules": "database.rules.json"
},
"hosting": {
"public": "dist",
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
中/ DIST中的index.html是火力託管和在/ app中的index.html是灰燼應用之一。
如何讓我的應用程序出現?
感謝
你有沒有試過把它改爲'「public」:「app」? – adolfosrs
剛纔。它仍然顯示Firebase歡迎頁面。我可以導航到我的應用程序中的其他頁面,但它只顯示一些手柄代碼。 此外,我覺得燼建立dist – AMT