我正在尝试使用Passenger 将RoR 应用程序部署到我的DreamHost 托管帐户上,但无法启动和运行它。
我的应用程序需要两个自定义 gem 'amazon-ecs' 和 'nokogiri'。根据 DreamHost wiki ( http://wiki.dreamhost.com/Freezing_Gems ) 上的说明,我通过将宝石编码到我的配置文件 (config.gem "nokogiri") 中将宝石冻结给供应商,然后使用 rake gems:unpack命令将它们构建到供应商中。
然后我使用 rake rails:freeze:gems 冻结了 rails gem,并将其上传到我的子域。
我的回溯的最后七行如下:
0 /home/rclosner/demo.spubooks.com/vendor/rails/railties/lib/initializer.rb 336 in `abort'
1 /home/rclosner/demo.spubooks.com/vendor/rails/railties/lib/initializer.rb 336 in `check_gem_dependencies'
2 /home/rclosner/demo.spubooks.com/vendor/rails/railties/lib/initializer.rb 170 in `process'
3 /home/rclosner/demo.spubooks.com/vendor/rails/railties/lib/initializer.rb 113 in `send'
4 /home/rclosner/demo.spubooks.com/vendor/rails/railties/lib/initializer.rb 113 in `run'
5 ./config/environment.rb 9
6 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require'
7 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb 31 in `require'
我的配置文件如下所示:
RAILS_GEM_VERSION = '2.3.3' unless defined? RAILS_GEM_VERSION
require File.join(File.dirname(__FILE__), 'boot')
Rails::Initializer.run do |config|
config.gem "nokogiri"
config.gem "amazon-ecs"
config.time_zone = 'UTC'
end
我错过了宝石的一步吗?我在正确的轨道上吗?