gpt4 book ai didi

Firebase 部署功能 -- 非交互式

转载 作者:行者123 更新时间:2023-12-01 10:21:13 24 4
gpt4 key购买 nike

我正在集成 CI/CD 以部署我的 firebase 功能。

firebase use PROJECTID --token FIREBASE_TOKEN
firebase deploy --token FIREBASE_TOKEN --non-interactive

现在,每当从 index.js 中删除一个函数时,它都会抛出以下异常。

Error: The following functions are found in your project but do not exist in your local source code: httpSeeding(us-central1) Aborting because deletion cannot proceed in non-interactive mode. To fix, manually delete the functions by running: firebase functions:delete httpSeeding --region us-central1



有没有办法在非交互模式下从控制台中删除已删除的函数而不运行 firebase functions:delete httpSeeding ??

最佳答案

使用 运行部署-f 选项,它应该删除 中的额外功能非交互模式
firebase deploy --token FIREBASE_TOKEN -f
从运行 firebase help deploy 可用的文档中获取,我们看到以下选项:

 -f, --force delete Cloud Functions missing from the current working directory without confirmation

关于Firebase 部署功能 -- 非交互式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52097216/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com