The way to approach this depends too much on the details. Reading the file
in memory and applying some simple regexp could suffice. On the other
extreme you could redefine the problem by using environment variables in
each call to worker_processes and having the values set externally. And
there are surely other solutions in between.
Just some thoughts, the topic of this mailing list is Rails _core_
development, however. That is, things related to the development of Rails
itself. Please repost your question to the rubyonrails-talk mailing list,
IRC, or (gasp!) Stack Overflow. (This is a Ruby problem indeed, not Rails
specific.)