我的生产服务器上有一个奇怪的行为:我通过Capistrano将Rails 3应用程序部署到生产服务器。 Capistrano脚本在部署结束后重新启动乘客。当我打开应用程序,我看到一个乘客错误消息:乘客错过了生产环境中的开发宝石
Could not find autotest-fsevent-0.2.4 in any of the sources
(Bundler::GemNotFound)
过程自动测试,fsevent是不是安装在我的生产环境(甚至不能在Ubuntu上安装...)
的环境设置Apache的虚拟主机:
<VirtualHost *>
PassengerMinInstances 1
ServerName test.myapp.de
DocumentRoot /var/www/myapp/current/public
RailsEnv production
RackEnv production
<Directory /var/www/myapp/current/public/>
Options -Indexes
AllowOverride None
Order deny,allow
Deny from none
Allow from all
AddOutputFilterbyType DEFLATE text/html
FileEtag none
</Directory>
LogLevel warn
ErrorLog /var/www/myapp/shared/log/error.log
CustomLog /var/www/myapp/shared/log/access.log combined
</VirtualHost>
这里是我的Gemfile:
source 'http://rubygems.org'
gem 'rails', '3.0.6'
gem 'jquery-rails'
gem 'mysql'
gem 'simple-navigation'
gem 'geokit'
gem 'geokit-rails3', :git => "git://github.com/loosecubes/geokit-rails3.git"
gem 'validates_timeliness', '~> 3.0.2'
gem 'delocalize'
gem 'prawn'
group :development do
gem 'rspec-rails', '2.5.0'
gem 'faker', '0.3.1'
#gem 'ruby-debug19'
gem 'ruby-debug'
gem 'autotest', '4.4.6'
gem 'autotest-rails-pure', '4.1.2'
gem 'autotest-fsevent', '0.2.4'
gem 'autotest-growl', '0.2.9'
end
group :test do
gem 'rspec', '2.5.0'
gem 'rcov'
gem 'webrat', '0.7.1'
gem 'factory_girl_rails', '1.0'
end
为什么乘客(或打包者)认为它需要所有的宝石,而不仅仅是生产环境的宝石?
感谢您的帮助!
你可以发布你的Gemfile吗? – 2011-06-01 12:44:51
已被加入到我的问题中 - 帖子... – 2011-06-01 14:18:58