這裏是我在我的enviornment.rb中。我知道有 重啓問題,因爲「守護進程」gem中存在一個錯誤,ghazel-daemons修復了它。但它不適用於我的情況。我是 使用collectiveidea 2.1.0 - DJ的預版本,rails 2.3.5。delayed_job從capistrano重新啓動
config.gem 'delayed_job', :source => 'http://rubygems.org', :version
=> "2.1.0.pre"
config.gem "ghazel-daemons", :lib => "daemons", :source => 'http://
gems.github.com'
gem "ghazel-daemons"
require "daemons"
但我仍然無法得到delayed_job從capistrano重新啓動。
desc "Restart the delayed_job process"
task :delayed_job_restart, :roles => :app do
run "cd #{current_path};#{get_rails_env} script/delayed_job
restart"
end
感謝