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

时间:2016-05-27 11:05:11

标签: laravel amazon-web-services

我第一次将我的Laravel应用程序部署到AWS ElasticBeanstalk后出现以下错误。健康检查是绿色的。我按照AWS文档的指示更改了环境和数据库设置以匹配AWS上的设置。

<connectionStrings>
    <add name="registerationConnectionString" 
       connectionString="Data Source=YourServerName;
         Initial Catalog=YourDatabaseName;
         Persist Security Info=True;
         User ID=yourUserId;
         Password=yourPassword" />
</connectionStrings>

这是第109行:

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

1 个答案:

答案 0 :(得分:0)

尝试创建/bootstrap/cache目录并为其设置正确的权限:

chmod 777 -R bootstrap/cache