Je réalise qu'en faisant explicitement
export RAILS_ENV=production
mon workling-Starling-client a commencé correctement.
J'ai donc dû déclarer RAILS_ENV variables avant d'émettre le fichier de configuration dieu
RAILS_ENV=production god -d config/monitor_daemons.god -t
Je suis aussi en utilisant la variable pour démarrer Starling démon dans port production
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"
...
fin