当我在应用程序上运行eb deploy时,出现此错误:
-hidden-@ruby:~/-hidden-$ eb deploy
WARNING: You have uncommitted changes.
Creating application version archive "app-9115-160205_135915".
Uploading -hidden-/app-9115-160205_135915.zip to S3. This may take a while.
Upload Complete.
INFO: Environment update is starting.
INFO: Deploying new version to instance(s).
ERROR: [Instance: i-024e83b0ed9b09096] Command failed on instance. Return code: 5 Output: (TRUNCATED)...ies/ruby-2.2.3/lib/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0-static/tiny_tds-0.6.2/gem_make.out
An error occurred while installing tiny_tds (0.6.2), and Bundler cannot
continue.
Make sure that `gem install tiny_tds -v '0.6.2'` succeeds before bundling.
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) 'i-024e83b0ed9b09096'. Aborting the operation.
ERROR: Failed to deploy application.
ERROR: Failed to deploy application.
我可以在本地计算机和EC2实例上成功安装tiny_tds,但是在部署时遇到此错误。我对ruby,rails,git和任何编程都非常陌生。基本上,我正在为heroku申请并将其转换为en EB环境。
答案 0 :(得分:0)
请删除Gemfile中的tiny_tds版本 然后再试一次。