1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Prefer DYNO name over system hostname on Heroku, fixes #1742

This commit is contained in:
Mike Perham 2014-05-29 21:26:11 -07:00
parent 0d2904a7a5
commit 24f5ba7029
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
3.1.3
-----------
- Use ENV['DYNO'] on Heroku for hostname display, rather than an ugly UUID. [#1742]
3.1.2 3.1.2
----------- -----------

View file

@ -27,7 +27,7 @@ module Sidekiq
end end
def hostname def hostname
Socket.gethostname ENV['DYNO'] || Socket.gethostname
end end
def identity def identity