如何让 Ember index.html 出现在 dist 目录而不是 firebase 欢迎页面中?
How do I get the Ember index.html to appear in dist directory instead of the firebase welcome page?
第一次做这个,所以我不知道该怎么做。
我初始化了firebase,将dist设为public文件夹,运行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 是 firebase 托管,而 /app 中的 index.html 是 Ember 应用程序。
如何让我的应用出现?
谢谢
Firebase CLI 将从 firebase.json
部署您的 hosting.public
目录中指定的任何文件。在这种情况下,您可以 运行 cat dist/index.html
并且您可能会看到 Firebase 托管默认页面的内容。
听起来您需要调查 Ember 构建过程并确定输出文件的确切去向。您还可以在本地使用 firebase serve
查看将要部署的内容的预览,而无需实际进行部署。
第一次做这个,所以我不知道该怎么做。
我初始化了firebase,将dist设为public文件夹,运行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 是 firebase 托管,而 /app 中的 index.html 是 Ember 应用程序。
如何让我的应用出现?
谢谢
Firebase CLI 将从 firebase.json
部署您的 hosting.public
目录中指定的任何文件。在这种情况下,您可以 运行 cat dist/index.html
并且您可能会看到 Firebase 托管默认页面的内容。
听起来您需要调查 Ember 构建过程并确定输出文件的确切去向。您还可以在本地使用 firebase serve
查看将要部署的内容的预览,而无需实际进行部署。