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