2

下面是我的delayed_job monitrc 文件,我想将它用作erb 模板,以便我可以动态设置RAILS_ENV 变量。有谁知道该怎么做?

set daemon  120

check process delayed_job with pidfile /home/rails/public_html/myapp/shared/pids/delayed_job.pid
  start program = "/usr/bin/env RAILS_ENV=production /home/rails/public_html/myapp/current/script/delayed_job start"
  stop program = "/usr/bin/env RAILS_ENV=production /home/rails/public_html/myapp/current/script/delayed_job stop"
4

1 回答 1

1

怎么样

set daemon <%= interval %>
check process <%= process_name %> with pidfile <%= pidfile %>
  start program = "<%= start_program %>"
  stop program = "<%= stop_program %>"

相应地设置这些变量?

于 2011-06-28T11:49:41.083 回答