1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Firebaseのチュートリアルで Error reading rules file firestore.rulesと表示される場合

Posted at

Cloud Firestoreのセキュリティルールをローカルから更新しようとした際

/web-start下にfirestore.rulesが存在しなかったため、代わりにweb/firestore.rulesを確認し、下記のコマンドを実行するとエラーが発生しました。

firebase deploy --only firestore
⚠  functions: package.json indicates an outdated version of firebase-functions.
 Please upgrade using npm install --save firebase-functions@latest in your functions directory.

=== Deploying to 'friendlychat-23d6f'...

i  deploying firestore

Error: Error reading rules file firestore.rules

やはりweb-start下にファイルが必要だったらしく、web/firestore.rulesをコピーし配置することで、下記のように正常に更新できました。

=== Deploying to 'friendlychat-23d6f'...

i  deploying firestore
i  firestore: checking firestore.rules for compilation errors...
✔  firestore: rules file firestore.rules compiled successfully
i  firestore: uploading rules firestore.rules...
✔  firestore: released rules firestore.rules to cloud.firestore

✔  Deploy complete!
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?