关注了这个关于delayed_job和monit的问题
它在我的开发机器上工作。但是,每当我尝试在生产环境中运行时,它都会随着延迟工作日志的关注而死掉
*** Starting job worker delayed_job host:mail.welcometonewnepal.com pid:356
#<Mysql::Error: Access denied for user 'root'@'localhost' (using password: YES)>
*** Starting job worker delayed_job host:mail.welcometonewnepal.com pid:441
#<Mysql::Error: Access denied for user 'root'@'localhost' (using password: YES)>
*** Starting job worker delayed_job host:mail.welcometonewnepal.com pid:448
#<Mysql::Error: Access denied for user 'root'@'localhost' (using password: YES)>
我将在生产环境中运行
ruby script/delayed_job start -e production
仍然出错。我注意到这是由于未设置环境,因此它试图获取开发环境。
/opt/ruby-enterprise-1.8.6-20090610/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:365:in `read': No such file or directory - /home/millisami/rails_apps/wnn_finale/config/environments/-e.rb (Errno::ENOENT)
为什么环境参数设置不正确?