Skip to content

Instantly share code, notes, and snippets.

@wingrunr21
Created November 26, 2012 21:11
Show Gist options
  • Save wingrunr21/4150630 to your computer and use it in GitHub Desktop.
Save wingrunr21/4150630 to your computer and use it in GitHub Desktop.
Airbrake environment by hostname
Airbrake.configure do |config|
# ...
if Rails.env.staging?
config.environment_name = `hostname -f`.strip
end
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment