Skip to content

Instantly share code, notes, and snippets.

@neilmiddleton
Last active August 29, 2015 13:56
Show Gist options
  • Save neilmiddleton/9218688 to your computer and use it in GitHub Desktop.
Save neilmiddleton/9218688 to your computer and use it in GitHub Desktop.
require 'unicorn'
require 'json'
config = Unicorn::Configurator.new(config_file: 'config/unicorn.rb')
config_hash = {
"timeout" => config[:timeout],
"worker_processes" => config[:worker_processes],
"preload_app" => config[:preload_app],
}
puts config_hash.to_json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment