-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.ru
26 lines (21 loc) · 762 Bytes
/
config.ru
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), 'lib')))
require 'bundler/setup'
require 'haml'
require 'omniauth'
require 'sinatra/base'
require 'twitter'
require 'application'
use Rack::Session::Cookie, :key => 'rack.session',
:domain => 'subtwitles.com',
:path => '/',
:expire_after => 60*24*365*10,
:secret => ENV['SESSION_KEY']
use OmniAuth::Builder do
provider :twitter, ENV['TWITTER_CONSUMER_KEY'],
ENV['TWITTER_CONSUMER_SECRET']
end
Twitter.configure do |config|
config.consumer_key = ENV['TWITTER_CONSUMER_KEY']
config.consumer_secret = ENV['TWITTER_CONSUMER_SECRET']
end
run Application