该目录不可由 Web 进程写入:/app/backend/web/assets'
The directory is not writable by the Web process: /app/backend/web/assets'
我在 google App Engine 中部署我的应用程序时出现以下错误 我在哪里可以从 App Engine 获得写入资产文件夹的权限?
enter image description here
这是一个重复的问题。您无法写入云中的生产服务器。来自:https://cloud.google.com/appengine/docs/standard/php/runtime#filesystem
An App Engine application cannot:
write to the filesystem. Applications can use Google Cloud Storage
for storing persistent files. Reading from the filesystem is allowed,
and all application files uploaded with the application are available.
您想使用 Google 云存储上传照片。您可以暂时写入 /tmp 目录,但不会持续存在。
您不能将文件写入 App Engine 应用程序的本地文件系统,/tmp
目录除外(请参阅 docs)。
但是请记住,/tmp
目录将数据临时存储在实例的内存中。这意味着 运行 您的 GAE 应用无法访问存储数据的其他实例。
如果你需要持久化文件,你应该use Cloud Storage
我在 google App Engine 中部署我的应用程序时出现以下错误 我在哪里可以从 App Engine 获得写入资产文件夹的权限?
enter image description here
这是一个重复的问题。您无法写入云中的生产服务器。来自:https://cloud.google.com/appengine/docs/standard/php/runtime#filesystem
An App Engine application cannot:
write to the filesystem. Applications can use Google Cloud Storage for storing persistent files. Reading from the filesystem is allowed, and all application files uploaded with the application are available.
您想使用 Google 云存储上传照片。您可以暂时写入 /tmp 目录,但不会持续存在。
您不能将文件写入 App Engine 应用程序的本地文件系统,/tmp
目录除外(请参阅 docs)。
但是请记住,/tmp
目录将数据临时存储在实例的内存中。这意味着 运行 您的 GAE 应用无法访问存储数据的其他实例。
如果你需要持久化文件,你应该use Cloud Storage