2016-07-06 33 views
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是灰燼應用之一。

如何讓我的應用程序出現?

感謝

+0

你有沒有試過把它改爲'「public」:「app」? – adolfosrs

+0

剛纔。它仍然顯示Firebase歡迎頁面。我可以導航到我的應用程序中的其他頁面,但它只顯示一些手柄代碼。 此外,我覺得燼建立dist – AMT

回答

1

的火力地堡CLI將部署任何文件在您的hosting.public目錄從firebase.json規定。在這種情況下,您可以運行cat dist/index.html,您可能會看到Firebase託管默認頁面的內容。

這聽起來像你需要調查你的Ember構建過程,並確定輸出文件的確切位置。您還可以在本地使用firebase serve來查看部署內容的預覽,而無需實際進行部署。

相關問題