Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
连接ElasticBeanstalk上的Laravel应用程序时收到错误_Laravel_Amazon Web Services - Fatal编程技术网

连接ElasticBeanstalk上的Laravel应用程序时收到错误

连接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

在第一次将我的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 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
命令