下面是我的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"