应用程序错误,未定义的符号:rb_thread_select
Application error, undefined symbol: rb_thread_select
我有一个 RoR 应用程序一切正常,直到我部署到 heroku,在那里我得到 "Application Error" 和日志 "undefined symbol: rb_thread_select",我正在使用 "ruby 2.3.0p0","Rails 4.2.5" gem 'pg', '0.18.4', 有什么解决办法吗?
source 'https://rubygems.org'
gem 'rails', '4.2.5'
gem 'pg', '0.18.4'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'foundation-rails'
gem "paperclip", "~> 5.0.0"
gem 'devise'
gem 'redis', '~> 3.0.1'
gem 'hiredis', '~> 0.4.5'
# gem 'bcrypt', '~> 3.1.7'
# gem 'unicorn'
# gem 'capistrano-rails', group: :development
group :development, :test do
console
gem 'byebug'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
background. Read more: https://github.com/rails/spring
gem 'spring'
end
source 'https://rubygems.org'
ruby '2.3.0'
gem 'rails', '4.2.5'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'foundation-rails'
gem "paperclip", "~> 5.0.0"
gem 'devise'
gem 'redis', '~> 3.0.1'
gem 'hiredis', '~> 0.4.5'
# gem 'bcrypt', '~> 3.1.7'
# gem 'unicorn'
# gem 'capistrano-rails', group: :development
group :development, :test do
console
gem 'byebug'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
background. Read more: https://github.com/rails/spring
gem 'spring'
end
group :production do
gem 'pg'
gem 'rails_12factor'
gem 'puma'
end
将此 gemfile 和 运行 bundle install 复制并粘贴到您的终端中。
我有一个 RoR 应用程序一切正常,直到我部署到 heroku,在那里我得到 "Application Error" 和日志 "undefined symbol: rb_thread_select",我正在使用 "ruby 2.3.0p0","Rails 4.2.5" gem 'pg', '0.18.4', 有什么解决办法吗?
source 'https://rubygems.org'
gem 'rails', '4.2.5'
gem 'pg', '0.18.4'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'foundation-rails'
gem "paperclip", "~> 5.0.0"
gem 'devise'
gem 'redis', '~> 3.0.1'
gem 'hiredis', '~> 0.4.5'
# gem 'bcrypt', '~> 3.1.7'
# gem 'unicorn'
# gem 'capistrano-rails', group: :development
group :development, :test do
console
gem 'byebug'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
background. Read more: https://github.com/rails/spring
gem 'spring'
end
source 'https://rubygems.org'
ruby '2.3.0'
gem 'rails', '4.2.5'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'foundation-rails'
gem "paperclip", "~> 5.0.0"
gem 'devise'
gem 'redis', '~> 3.0.1'
gem 'hiredis', '~> 0.4.5'
# gem 'bcrypt', '~> 3.1.7'
# gem 'unicorn'
# gem 'capistrano-rails', group: :development
group :development, :test do
console
gem 'byebug'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
background. Read more: https://github.com/rails/spring
gem 'spring'
end
group :production do
gem 'pg'
gem 'rails_12factor'
gem 'puma'
end
将此 gemfile 和 运行 bundle install 复制并粘贴到您的终端中。