如何在本地开发服务器上启用 Google Cloud Storage?

我想使用 GCS 存储桶作为我的 blobstore 的支持,但我不知道如何在我的开发服务器上设置一个.

I want to use a GCS bucket as the backing for my blobstore but I cannot figure out how to set one up on my development server.

有使用实时服务器上的开发人员控制台执行此操作的说明,但我找不到有关如何在本地开发计算机上执行此操作的任何信息...

There are instructions for doing this using the developers console on the live server, but I can't find anything about how to do it on my local development machine...

推荐答案

原来你根本不需要执行任何设置.我只是假设在使用 blobstore 上传时有一个具有特定名称的文件,并且是自动为我创建的.

Turns out you don't need to perform any setup at all. I just assumed there was one with particular name when uploading using the blobstore and one was created for me automatically.

顺便说一句,似乎没有任何地方记录您如何浏览开发服务器存储中的文件.您可以通过在 Datastore Viewer 管理员访问本地开发服务器的权限中选择 __GsFileInfo__ 实体来实现.

Incidentally, it does not seem to be documented anywhere how you can browse files in the storage of the development server. You can do it by selecting the __GsFileInfo__ entity in the Datastore Viewer admin access to your local dev server.

相关文章