Ruby on rails Prepard语句已存在问题-puma配置不正确
我正在使用Rails4和puma作为我的web服务器。我在heroku上使用postgres 我错误地说准备好的声明已经“a3”存在 这是我给彪马的密码Ruby on rails Prepard语句已存在问题-puma配置不正确,ruby-on-rails,ruby-on-rails-4,heroku,Ruby On Rails,Ruby On Rails 4,Heroku,我正在使用Rails4和puma作为我的web服务器。我在heroku上使用postgres 我错误地说准备好的声明已经“a3”存在 这是我给彪马的密码 # REF https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server workers Integer(ENV['WEB_CONCURRENCY'] || 2) threads_count = Integer(ENV['M
# REF https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server
workers Integer(ENV['WEB_CONCURRENCY'] || 2)
threads_count = Integer(ENV['MAX_THREADS'] || 5)
threads threads_count, threads_count
preload_app!
rackup DefaultRackup
port ENV['PORT'] || 3000
environment ENV['RACK_ENV'] || 'development'
on_worker_boot do
# Worker specific setup for Rails 4.1+
# See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot
ActiveRecord::Base.establish_connection
end
我认为我的ActiveRecord连接配置导致了一个问题
这可能会有所帮助,但我不知道如何为彪马做到这一点您在问题中提到的问题的链接提供了一些建议
如果gem文件中包含机架超时
gem,那么最流行的方法似乎是删除它。听起来确实是一个有保证的解决方案,但在这方面帮助了一些人。您在问题中提到的问题的链接提供了一些建议
如果gem文件中包含机架超时
gem,那么最流行的方法似乎是删除它。听起来确实是一个有保证的解决方案,但在这方面帮助了一些人