我试图让laravel 5.2应用程序在Google云服务上运行并出现此错误。
ErrorException:file_put_contents(/app/bootstrap/cache/services.php):无法打开流:/app/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:109
我已按照此说明https://cloud.google.com/community/tutorials/run-laravel-on-appengine-flexible并使用https://github.com/shpasser/GaeSupportL5
部署了应用我的app.yaml文件
runtime: php
env: flex
runtime_config:
document_root: ''
# required on some platforms so ".env" is not skipped
skip_files: false
env_variables:
# The values here will override those in ".env". This is useful for
# production-specific configuration. However, feel free to set these
values
# in ".env" instead if you prefer.
APP_LOG: errorlog
STORAGE_DIR: /tmp
#CACHE_DRIVER: database
#SESSION_DRIVER: database
## Set these environment variables according to your CloudSQL
configuration.
DB_HOST: localhost
DB_DATABASE: db_name
DB_USERNAME: root
DB_PASSWORD: pwd
DB_SOCKET: /cloudsql/project_name:europe-west1:db_name
beta_settings:
# for Cloud SQL, set this value to the Cloud SQL connection name,
# e.g. "project:region:cloudsql-instance"
cloud_sql_instances: "project_name:europe-west1:db_name"
Composer文件包含此部分
"post-deploy-cmd": [
"chmod -R 777 bootstrap\/cache"
]
有没有人面对这个问题?只是坚持这个,不知道如何解决它。谢谢!