【发布时间】:2016-02-15 21:27:08
【问题描述】:
我已经使用 Amazing Beanstalk 部署了我的 Laravel 5.1 应用程序,经过反复使用,我最终得到了这个错误。
"file_put_contents(/var/app/current/storage/framework/cache/d4/d7/d4d77eddeb64100f6da8f8b601a4631b): failed to open stream: Permission denied"
在我的 .ebextensions 配置文件中,我尝试将此命令添加到部署中,但它并没有解决问题,因为文件似乎是在部署后在浏览站点时创建的。
container_commands:
"02-chmod-storage":
command: "cd /var/app/ondeck; chmod -R 777 storage"
我怎样才能永久解决这个问题?
【问题讨论】:
标签: php linux laravel amazon-web-services amazon-elastic-beanstalk