Blobstore图像消失在Google App Engine开发服务器上 [英] Blobstore Images Disappearing on Google App Engine Development Server
问题描述
我在我的网站上使用了App Engine的高性能图片服务,并且我可以在本地计算机和生产环境中正常运行,例如,我可以上传图片并使用get_serving_url成功显示图片一团糟。但是,这些图像似乎并未在我的开发服务器上持续存在,即从计算机重新启动回来后,图像不再显示。开发服务器吐出:
I'm using App Engine's high performance image serving on my site, and I'm able to get everything working properly on both my local machine and in production i.e. I can upload an image and successfully display the images using get_serving_url on the blob key. However, these images don't seem to persist on my development server, i.e. after I come back from a computer restart, the images no longer show up. The development server spits out:
images_service_pb.ImagesServiceError.BAD_IMAGE_DATA
images_service_pb.ImagesServiceError.BAD_IMAGE_DATA
我猜测其实是因为潜在的斑点不再存在(虽然这只是一个预感)。我的数据存储的其余部分仍然完好无损,因为我正在使用启动设置--datastore_path来确保我的数据持续存在。我还需要使用一个单独的标志来坚持blob吗?或者在这里有一个单独的问题,我错过了?
which I'm guessing is actually because the underlying blobs are no longer there (although this is just a hunch). The rest of my datastore is still intact though, as I'm using the launch setting "--datastore_path" to ensure my data persists. Is there a separate flag I need to be using to persist the blobs as well? Or is there a separate problem here that I'm missing?
推荐答案
您必须使用 - blobstore_path = DIR
:
--blobstore_path=DIR Path to directory to use for storing Blobstore
file stub data.
您可以看到所有输入 dev_appserver.py --help
在命令行中。
You can see all options typing dev_appserver.py --help
in the command line.
这篇关于Blobstore图像消失在Google App Engine开发服务器上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!