我正在尝试发布 Rails 3.1(从 3.0 升级)应用程序。提交代码后我运行
bundle install --path vendor/gems RAILS_ENV=production
有效。我有一个目录vendor/gems/ruby/1.9.1
, bin
, cache
,doc
和位于gems
其中。specifications
但是,当我运行 rake 任务时,出现错误:
$ rake db:migrate RAILS_ENV=production
Could not find authlogic-3.0.3 in any of the sources
Run `bundle install` to install missing gems.
这不是问题authlogic
,它在gems
和specifications
目录中,并且annotate
在我从gemfile中删除它之前在错误中提到了它。
有什么问题?
我正在使用 Ubuntu 10.10、Ruby 1.9.2p0、Rails 3.1 和 Rake 0.9.2。代码由 capistrano 部署,vendor
目录放置在shared
文件夹中并在版本中链接。