【发布时间】:2020-06-26 09:48:10
【问题描述】:
我在 AWS Elastic Beanslack 中部署了我的应用程序。最初,我直接在 Aws 控制台中部署了我的应用程序。配置完所有的东西。我压缩了我的代码并将其上传到控制台中。当时它的工作完美。
但现在我尝试使用 cli 进行部署,它显示错误。我把eb deploy命令
Creating application version archive "app-xxxxxxxxx".
Uploading: [##################################################] 100% Done...
2020-03-14 18:51:49 INFO Environment update is starting.
2020-03-14 18:51:55 INFO Deploying new version to instance(s).
2020-03-14 18:52:22 ERROR [Instance: i-xxxxxxxxx] Command failed on instance. Return code: 255 Output: (TRUNCATED)...ar/src/Composer/DependencyResolver/GenericRule.php on line 36
Fatal error: Out of memory (allocated 809508864) (tried to allocate 8192 bytes) in phar:///opt/elasticbeanstalk/support/composer.phar/src/Composer/DependencyResolver/GenericRule.php on line 36.
Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/10_composer_install.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
2020-03-14 18:52:22 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
2020-03-14 18:52:22 ERROR Unsuccessful command execution on instance id(s) 'i-xxxxxxxxx'. Aborting the operation.
2020-03-14 18:52:23 ERROR Failed to deploy application.
从互联网我尝试了所有这些东西 1)我在 php.ini 中扩展了内存,但仍然无法正常工作 2)我创建了 ebextensions 文件夹并进行了一些配置,但那也不起作用
我的猜测是最初我是手动部署的,所以当时我也使用供应商文件夹进行了压缩。现在,当我尝试使用 cli 时,它不会占用供应商文件夹。而不是使用composer install
所以我认为由于这些事情我正面临这个问题
如果我想做任何其他事情,请告诉我们
【问题讨论】:
标签: laravel amazon-web-services deployment amazon-elastic-beanstalk amazon-elb