Skip to content

Instantly share code, notes, and snippets.

@neetso
Last active January 26, 2016 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neetso/fbf70240bda1acdaf235 to your computer and use it in GitHub Desktop.
Save neetso/fbf70240bda1acdaf235 to your computer and use it in GitHub Desktop.
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