Ruby on rails 无法在rails生产环境中启动工作\u starling\u客户端
我用上帝来启动和监控我的椋鸟和正在运行的守护进程Ruby on rails 无法在rails生产环境中启动工作\u starling\u客户端,ruby-on-rails,god,workling,starling-server,Ruby On Rails,God,Workling,Starling Server,我用上帝来启动和监控我的椋鸟和正在运行的守护进程 在开发机器上工作非常出色,但“workling\u starling\u client”拒绝在我的生产机器上启动。我意识到 export RAILS_ENV=production 我的工作starling客户端启动正常 因此,在发布god配置文件之前,我必须声明RAILS_ENV变量 RAILS_ENV=production god -d config/monitor_daemons.god -t 我还在生产端口中使用变量启动starling
在开发机器上工作非常出色,但“workling\u starling\u client”拒绝在我的生产机器上启动。我意识到
export RAILS_ENV=production
我的工作starling客户端启动正常
因此,在发布god配置文件之前,我必须声明RAILS_ENV变量
RAILS_ENV=production god -d config/monitor_daemons.god -t
我还在生产端口中使用变量启动starling守护进程
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"
...
结束我意识到
export RAILS_ENV=production
我的工作starling客户端启动正常
因此,在发布god配置文件之前,我必须声明RAILS_ENV变量
RAILS_ENV=production god -d config/monitor_daemons.god -t
我还在生产端口中使用变量启动starling守护进程
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"
...
结束