Last active
January 26, 2016 07:33
-
-
Save neetso/fbf70240bda1acdaf235 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 'slack-notifier' | |
require 'sinatra' | |
require 'builder' | |
require 'redis' | |
notifier = Slack::Notifier.new "https://hooks.slack.com/services/XXXXXXX/XXXXXXX/XXXXXXX" | |
call_details = { | |
fallback: "Call Details in the team <https://secure.live.sipgate.co.uk/|event list>.", | |
text: "Call Details in the team <https://secure.live.sipgate.co.uk/|event list>.", | |
color: "warning" | |
} | |
configure :development do | |
$redis = Redis.new | |
set :responseUrl, 'http://XXXXXXX.ngrok.com/' | |
end | |
configure :production do | |
uri = URI.parse(ENV["REDISCLOUD_URL"]) | |
$redis = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password) | |
set :responseUrl, 'http://XXXXXXX.herokuapp.com/' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment