在AWS Elastic Beanstalk上部署应用程序时出现Ruby版本错误

时间:2018-05-09 05:06:31

标签: ruby-on-rails ruby amazon-web-services elastic-beanstalk

我正在尝试在AWS Elastic Beanstalk上部署Ruby on Rails应用程序。我收到了以下错误 -

ERROR: [Instance: <Instance ID>] Command failed on instance. Return code: 18 Output: (TRUNCATED)...e ']'
+ bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Your Ruby version is 2.4.3, but your Gemfile specified 2.3.3.
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.
INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
ERROR: Unsuccessful command execution on instance id(s) '<Instance ID>'. Aborting the operation.
ERROR: Failed to deploy application.

我收到此错误后,我从Gemfile中删除了ruby版本号,但我仍然收到此错误。

之后我在一个新的Beanstalk环境中部署了应用程序,而没有在Gemfile中提及Ruby版本。但我仍然得到同样的错误。

0 个答案:

没有答案