连接ElasticBeanstalk上的Laravel应用程序时收到错误
在第一次将我的Laravel应用程序部署到AWS ElasticBeanstalk后,我遇到以下错误。健康检查是绿色的。按照AWS文档的指示,我已经更改了环境和数据库设置,以匹配AWS上的设置连接ElasticBeanstalk上的Laravel应用程序时收到错误,laravel,amazon-web-services,Laravel,Amazon Web Services,在第一次将我的Laravel应用程序部署到AWS ElasticBeanstalk后,我遇到以下错误。健康检查是绿色的。按照AWS文档的指示,我已经更改了环境和数据库设置,以匹配AWS上的设置 ErrorException in Filesystem.php line 109: file_put_contents(/var/app/current/myapp-master/bootstrap/cache/services.php): failed to open stream: No such
ErrorException in Filesystem.php line 109:
file_put_contents(/var/app/current/myapp-master/bootstrap/cache/services.php): failed to open stream: No such file or directory
这是第109行:
public function put($path, $contents, $lock = false)
{
return file_put_contents($path, $contents, $lock ? LOCK_SH : 0);
}
尝试创建
/bootstrap/cache
目录并对其设置正确的权限:
chmod 777 -R bootstrap/cache
尝试创建
/bootstrap/cache
目录并对其设置正确的权限:
chmod 777 -R bootstrap/cache
现在它在ClassLoader.php第412行中显示:ErrorException:在第412行:function includeFile($file){include$file;}尝试删除
cache
目录中的所有内容,然后运行composer dumpauto
commandNow它会显示:ClassLoader.php第412行中的ErrorException:在第412行中:function includeFile($file){include$file;}尝试删除cache
目录中的所有内容,然后运行composer dumpauto
命令