Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/54.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Prepard语句已存在问题-puma配置不正确_Ruby On Rails_Ruby On Rails 4_Heroku - Fatal编程技术网

Ruby on rails Prepard语句已存在问题-puma配置不正确

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

我正在使用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['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,那么最流行的方法似乎是删除它。听起来确实是一个有保证的解决方案,但在这方面帮助了一些人