不明なエラー
$ node_modules/firebase-tools/bin/firebase deploy --token ${FIREBASE_TOKEN} --only database,storage,hosting
=== Deploying to '{PROJECT_ID}'...
i deploying database, storage, hosting
i database: checking rules syntax...
✔ database: rules syntax for database {PROJECT_ID} is valid
i storage: checking storage.rules for compilation errors...
✔ storage: rules file storage.rules compiled successfully
i storage: uploading rules storage.rules...
i hosting: preparing hosting/dist directory for upload...
i Progress: [
Error: HTTP Error: 410, Unknown Error
こまった。
原因
--only database,storage,hosting
こうやってまとめずに別々でデプロイしたらエラーメッセージを出してくれた。
$ node_modules/firebase-tools/bin/firebase deploy --token ${FIREBASE_TOKEN} --only database
=== Deploying to '{PROJECT_ID}'...
i deploying database
i database: checking rules syntax...
✔ database: rules syntax for database {PROJECT_ID} is valid
i database: releasing rules...
✔ database: rules for database {PROJECT_ID} released successfully
Error: HTTP Error: 410, This version of the Firebase CLI is no longer able to deploy to Firebase. Please upgrade to a newer version (>= 4.1.0). If you have further questions, please reach out to Firebase support.