问题描述
在Google Cloud Platform标准应用程序引擎环境上上传时的Laravel。它总是在部署时出现权限问题。 有时它会尝试从显示我的本地目录路由的路径访问缓存。我已将此代码添加到composer脚本中,尝试删除composer.lock文件并重新上传并进行了测试。
"post-install-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postInstall","@php artisan optimize","chmod -R 755 storage bootstrap\/cache"
]
即使错误也显示了我的本地目录路径!我已经在上添加了环境变量 也是。
APP_STORAGE: /tmp
VIEW_COMPILED_PATH: /tmp
ErrorException: file_put_contents(/media/riyo/64984189-3b2b-43bd-827f-3febb9e673a4/Havn/microservices/orders-microservice/storage/framework/cache/data/5f/79/5f79ca28c5f23bb2bdee5c894f207355b5536cf9): failed to open stream: No such file or directory
似乎没有任何反应,我已经切换到flex环境并尝试了!有人有解决此问题的方法吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)