Closed binarycleric closed 11 years ago
Hey @binarycleric, thanks for the PR. I preferred your one line solution. There's a fairly nice look way to make it work.
unicorn_options[:worker_processes] = (ENV["UNICORN_WORKERS"] || "1").to_i
Updated. Thanks for the help.
I ran into a few occasions where I wanted to spin up more worker processes on my development machine. I liked the simplicity of
unicorn-rails
but I really wanted some way of doing lightweight configuration.I've been on an "environment as configuration" kick thanks to Heroku so I figured I'd implement worker count that way.
Usage
Spins up 2 worker processes.
Still works.