简体   繁体   English

将Rails应用程序部署到Elastic Beanstalk一直失败

[英]Deploying a rails app to Elastic Beanstalk keeps failing

When I run eb deploy on the application, I get this error: 在应用程序上运行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.

I can install tiny_tds successfully on my local machine and on the EC2 instance, but I get this error when I deploy. 我可以在本地计算机和EC2实例上成功安装tiny_tds,但是在部署时会出现此错误。 I'm extremely new to ruby, rails, git and anything programming. 我对ruby,rails,git和任何编程都非常陌生。 Basically, I'm taking an application made for heroku and converting it into en EB environment. 基本上,我正在为heroku开发一个应用程序,并将其转换为EB环境。

Please remove the version of tiny_tds in Gemfile 请在Gemfile中删除tiny_tds的版本
And try again. 然后再试一次。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM