Last active
August 29, 2015 14:16
-
-
Save pglombardo/f1499638f4f65441b950 to your computer and use it in GitHub Desktop.
TraceView, Heroku & the Puma Webserver
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
workers Integer(ENV['WEB_CONCURRENCY'] || 2) | |
threads_count = Integer(ENV['MAX_THREADS'] || 5) | |
threads threads_count, threads_count | |
preload_app! | |
rackup DefaultRackup | |
port ENV['PORT'] || 3000 | |
environment ENV['RACK_ENV'] || 'development' | |
on_worker_boot do | |
::Oboe.reconnect! if defined?(::Oboe) | |
end | |
on_worker_shutdown do | |
::Oboe.disconnect! if defined?(::Oboe) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment