【问题标题】:How i update my react project host on firebase?我如何在 firebase 上更新我的 react 项目主机?
【发布时间】:2021-01-11 20:32:05
【问题描述】:

我在 firebase 上有一个 React 应用项目主机。所以我对如何更新我的项目感到很困惑?

【问题讨论】:

    标签: javascript reactjs firebase firebase-hosting


    【解决方案1】:

    请尝试以下两个命令:

    npm run build
    

    firebase deploy
    

    【讨论】:

    • 谢谢,我更新了,但现在我的应用页面显示空白...
    • 你能分享你的 firebase.json 吗?
    • { "hosting": { "public": "build", "ignore": [ "firebase.json", "/.*", "*/node_modules/ " ], "rewrites": [ { "source": "*", "destination": "/index.html" } ] } }
    • 请检查您的 react-app 构建文件夹是否为 'build/'。
    • 什么是'build/'
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-07-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-04
    相关资源
    最近更新 更多