[英]Deploy rails react app with webpacker gem on AWS elastic beanstalk
[英]Rails failed to deploy to Elastic Beanstalk Gem File
我正在尝试将ruby应用程序部署到弹性beantalk,但出现如下错误:
Creating application version archive "app-bf30-181005_152130".
Uploading: [##################################################] 100% Done...
2018-10-05 12:22:41 INFO Environment update is starting.
2018-10-05 12:23:27 INFO Deploying new version to instance(s).
2018-10-05 12:23:42 ERROR [Instance: i-04907e391d0f1504d] Command failed on instance. Return code: 5 Output: (TRUNCATED)... depends on
rAn error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before bundling.
In Gemfile:
dropzonejs-rails was resolved to 0.7.3, which depends on
rails was resolved to 4.2.0, which depends on
actionmailer was resolved to 4.2.0, which depends on
actionpack was resolved to 4.2.0, which depends on
actionview was resolved to 4.2.0, which depends on
rails-dom-testing was resolved to 1.0.7, which depends on
rails-deprecated_sanitizer was resolved to 1.0.3, which depends on
activesupport was resolved to 4.2.0, which depends on
json (ElasticBeanstalk::ExternalInvocationError)
Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/10_bundle_install.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
2018-10-05 12:23:42 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
2018-10-05 12:23:42 ERROR Unsuccessful command execution on instance id(s) 'i-04907e391d0f1504d'. Aborting the operation.
2018-10-05 12:23:43 ERROR Failed to deploy application.
ERROR: ServiceError - Failed to deploy application.
是因为版本控制吗? 我找不到解决方案。 弹性豆茎的红宝石版本显示为2.5
不,这是无法安装的json gem。
尝试在本地更新rubygems,然后更新Gemfile。
然后重试部署(应使用wasbelt进行“ eb部署”)
如果仍然无法使用,请在此处提供/var/log/eb-activity.log的内容,例如错误状态。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.