allow init script to receive command-line arguments
@@ -77,8 +77,8 @@ On Rails:
```ruby
# Iodine setup - use conditional setup to allow command-line arguments to override these:
if(defined?(Iodine))
- Iodine.threads ||= ENV.fetch("RAILS_MAX_THREADS") { 5 }
- Iodine.workers ||= ENV.fetch("WEB_CONCURRENCY") { 2 }
+ Iodine.threads = ENV.fetch("RAILS_MAX_THREADS") { 5 } if Iodine.threads.zero?
+ Iodine.workers = ENV.fetch("WEB_CONCURRENCY") { 2 } if Iodine.workers.zero?
Iodine::DEFAULT_SETTINGS[:port] = ENV.fetch("PORT") if ENV.fetch("PORT")
end
```
