0
我試圖建立Errbit(減速板)對我的RoR應用程序與Heroku,在按照以下站點:Errbit在Heroku與RVM&Capistrano的
- https://github.com/errbit/errbit
- http://morizyun.github.io/blog/errbit-heroku-rails-error-ruby/(日語,抱歉)
Heroku上的部署工作完美。我可以正常登錄並創建應用程序,所有設置似乎都可以。在本地主機的命令
*Gemfile:*
gem 'airbrake'
*config/initializers/errbit.rb:*
Airbrake.configure do |config|
config.api_key = 'eb81f59f77778865464da97f0e1ce5951'
config.host = 'myproject-errbit.herokuapp.com'
config.port = 80
config.secure = config.port == 443
end
我跑「包安裝」,並試圖:
在應用端,爲指導中所描述我所創建的文件
rake airbrake:test
OK,它的工作原理(信息出現在heroku應用程序中)。接下來,我在生產環境中部署(通過Capistrano的), 並用重試:
ssh [email protected]
cd /u/myapp/path/current/
rake airbrake:test
我有此錯誤消息:
/home/app/.rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find i18n-0.6.5 in any of the sources (Bundler::GemNotFound)
from /home/app/.rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `map!'
from /home/app/.rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `materialize'
from /home/app/.rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in `specs'
from /home/app/.rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.5/lib/bundler/definition.rb:159:in `specs_for'
from /home/app/.rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.5/lib/bundler/definition.rb:148:in `requested_specs'
from /home/app/.rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.5/lib/bundler/environment.rb:18:in `requested_specs'
from /home/app/.rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:in `setup'
from /home/app/.rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'
from /home/app/.rvm/gems/[email protected]/gems/rubygems-bundler-1.3.4/lib/rubygems-bundler/noexec.rb:74:in `setup'
from /home/app/.rvm/gems/[email protected]/gems/rubygems-bundler-1.3.4/lib/rubygems-bundler/noexec.rb:103:in `check'
from /home/app/.rvm/gems/[email protected]/gems/rubygems-bundler-1.3.4/lib/rubygems-bundler/noexec.rb:109:in `<top (required)>'
from /home/app/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in `require'
from /home/app/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in `rescue in require'
from /home/app/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:35:in `require'
from /home/app/.rvm/gems/[email protected]/gems/rubygems-bundler-1.3.4/lib/rubygems_executable_plugin.rb:4:in `block in <top (required)>'
from /home/app/.rvm/gems/[email protected]/gems/executable-hooks-1.2.3/lib/executable-hooks/hooks.rb:50:in `call'
from /home/app/.rvm/gems/[email protected]/gems/executable-hooks-1.2.3/lib/executable-hooks/hooks.rb:50:in `block in run'
from /home/app/.rvm/gems/[email protected]/gems/executable-hooks-1.2.3/lib/executable-hooks/hooks.rb:49:in `each'
from /home/app/.rvm/gems/[email protected]/gems/executable-hooks-1.2.3/lib/executable-hooks/hooks.rb:49:in `run'
from /home/app/.rvm/gems/ruby-2.0.0-p0/bin/ruby_executable_hooks:10:in `<main>'
(我已經進入用命令「應用程序」 的用戶(用戶部署))
我感到那紅寶石的設置是錯誤的:
ruby version
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]
rvm list
rvm rubies
=* ruby-2.0.0-p0 [ x86_64 ]
# => - current
# =* - current && default
# * - default
因此,您可以想象,發生錯誤時,數據不會保存在Errbit(Heroku)項目中。
如果有人能幫助我,我將不勝感激〜
謝謝您的閱讀。
完美〜謝謝! – johann