2008-10-21 78 views

回答

3

我意識到,通過明確做

export RAILS_ENV=production 

我workling塔林客戶端啓動正常。

所以我不得不發出上帝配置文件之前聲明RAILS_ENV變量

RAILS_ENV=production god -d config/monitor_daemons.god -t 

我還使用了變量生產端口開始八哥守護

STARLING_PORT = ENV['RAILS_ENV'] == 'production' ? '-p 15151' : '' 

God.watch do |w| 
    ... 
    w.start = "starling -d -P log/starling.pid -q log/ #{STARLING_PORT}" 
    ... 
end 

God.watch do |w| 
    ... 
    w.start = "script/workling_starling_client start" 
    ... 

結束

相關問題