问题描述
我已经在网上和stackoverflow上进行了搜索,但是找不到正确的答案.
I have searched over the web and stackoverflow but could not get this right.
我有一个Rails应用程序,并已部署到弹性beantalk中.运行正常,绿色,但网址无效.等待一会儿,页面显示连接超时.
I have a rails app and deployed to elastic beanstalk. The health is ok and green but the url is not working. It waits a little while and the page says connection time out.
当我键入eb open
时给出错误;
when I type eb open
gives an error;
ERROR: OSError :: [Errno 10] No child processes
不知道为什么会这样.
当我eb deploy
INFO: Environment update is starting.
INFO: Deploying new version to instance(s).
INFO: Environment health has transitioned from Ok to Info. Application update in progress on 1 instance. 0 out of 1 instance completed (running for 4 seconds).
INFO: New application version was deployed to running EC2 instances.
INFO: Environment update completed successfully.
负载均衡器可能有问题吗?在哪里可以查看我的数据库是否已创建/迁移?
Can be a problem with load balancers? Where can I see if my database is created/migrated?
这是我看到的错误消息:
Here what I see error messages:
宝石文件;
source 'https://rubygems.org'
gem 'rails', '4.2.0'
gem 'json', '~> 1.8.2'
gem 'bcrypt', '3.1.7'
gem 'will_paginate', '3.0.7'
gem 'bootstrap-will_paginate', '0.0.10'
gem 'carrierwave'
gem 'rmagick'
gem 'fog-aws'
#gem 'bootstrap-sass', '3.2.0.0'
gem 'sass-rails', '5.0.2' #it is added to new Rails applications by default.
gem 'dropzonejs-rails'
gem 'figaro'
gem 'uglifier', '2.5.3'
gem 'coffee-rails', '4.1.0'
gem 'jquery-rails', '4.0.3'
#gem 'jquery-ui-rails'
#//= require turbolinks TO ASSETS gem 'turbolinks', '2.3.0'
gem 'jbuilder', '2.2.3'
gem 'sdoc', '0.4.0', group: :doc
gem 'wicked'
gem 'geocoder'
gem "mailboxer"
gem 'toastr-rails'
#gem "select2-rails"
gem 'jquery-cookie-rails'
group :development, :test do
gem 'sqlite3', '1.3.9'
gem 'byebug', '3.4.0'
gem 'web-console', '2.0.0.beta3'
gem 'spring', '1.1.3'
end
group :test do
gem 'minitest-reporters', '1.0.5'
gem 'mini_backtrace', '0.1.3'
gem 'guard-minitest', '2.3.1'
end
group :production do
gem 'pg', '0.17.1'
gem 'rails_12factor', '0.0.2'
gem 'puma'
end
推荐答案
将config.force_ssl = true
更改为false
为我修复了该问题
Changing config.force_ssl = true
to false
fixed it for me
这篇关于Rails Elastic Beanstalk连接超时-PUMA服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!