根据谷歌/Firebase.io对Divshot.io的收购,我需要在2015年12月22日之前迁移我的产品“静态”HTML应用。我已安装了最新的firebase-tools CLI,并更新为最新的divshot CLI,并以其他方式准备了我的环境。
我遵循了来自占卜的所有指导,但是在尝试deploy时会收到以下错误
Jeffs-rMBP:insider-web jeff [develop] $ cp -p divshot.production.json divshot.json
Jeffs-rMBP:insider-web jeff [develop] $ divshot migrate
Migrating Divshot app insider-web to Firebase Hosting
What is your Firebase project's name? (insider-web) insider
Can we anonymously report which features your app used (for Firebase Hosting roadmap planning, etc.)? (y/n) y
Write firebase.json? (y/n) y
⚠ Warning: The following incompatible features were detected.
- clean_urls support is planned for Firebase Hosting, but is not yet available
- Firebase Hosting does not support AJAX proxying
Don't panic! Some features may be coming soon or there may be workarounds.
Contact support@firebase.com with any questions.
You need to take the following actions to fully migrate your app:
- Rename error.html to 404.html
Wrote firebase.json configuration file.
If you have the latest version of firebase-tools you should now be able
to run firebase serve in this directory to start a local server and
firebase deploy to deploy to Firebase Hosting.
See http://docs.divshot.com/migrate for additional migration info.
Jeffs-rMBP:insider-web jeff [develop] $ 我遵循了将error.html重命名为404.html的指导
Jeffs-rMBP:insider-web jeff [develop] $ cp -p error.html 404.html
Jeffs-rMBP:insider-web jeff [develop] $ 到目前为止,我看上去还不错,但是在尝试部署之后,我得到了以下消息:
Jeffs-rMBP:insider-web jeff [develop] $ firebase deploy
Error: Authentication required.
Jeffs-rMBP:insider-web jeff [develop] $ 这是我的原始divshot.json文件:
Jeffs-rMBP:insider-web jeff [develop] $ cat divshot.json
{
"name": "insider-web",
"root": "./",
"clean_urls": true,
"error_page": "error.html",
"proxy": {
"api": {
"origin": "http://oa-mobile.herokuapp.com",
"headers": {
"Accept": "application/json"
},
"cookies": false,
"timeout": 30
}
}
}
Jeffs-rMBP:insider-web jeff [develop] $ 下面是生成的firebase.json文件:
Jeffs-rMBP:insider-web jeff [develop] $ cat firebase.json
{
"firebase": "insider",
"public": "./",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
Jeffs-rMBP:insider-web jeff [develop] $ 附加注意事项:我能够成功地运行firebase serve并在localhost:5000本地启动我的应用程序--我的初始登陆页面成功地呈现并正确运行。
发布于 2015-12-11 03:24:13
您需要通过命令行登录:
firebase login这将打开一个浏览器窗口,让你通过你的谷歌帐户登录。确保是拥有insider Firebase应用程序的帐户。
根据您的实际情况,您目前拥有的唯一的火库名为glowing-heat-3960。在firebase中更改firebase.json属性。
{
"firebase": "glowing-heat-3960",
"public": "./",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}之后,您应该能够成功地部署。
https://stackoverflow.com/questions/34215430
复制相似问题