Last active
August 29, 2015 13:56
-
-
Save neilmiddleton/9218688 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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