Skip to content

Commit

Permalink
Skip if NODE_ENV environment is "development".
Browse files Browse the repository at this point in the history
  • Loading branch information
treby committed Apr 21, 2015
1 parent 7ef0508 commit 250cd97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/heroku-keepalive.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
# Josh Nichols <technicalpickles@github.com>

module.exports = (robot) ->
return if process.env.NODE_ENV is 'development'

keepaliveUrl = process.env.HUBOT_HEROKU_KEEPALIVE_URL or process.env.HEROKU_URL
if keepaliveUrl and not keepaliveUrl.match(/\/$/)
keepaliveUrl = "#{keepaliveUrl}/"
Expand Down

0 comments on commit 250cd97

Please sign in to comment.