Skip to content

Commit 78378f0

Browse files
committed
Add Heroku Config
1 parent 00aa5fa commit 78378f0

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

Gemfile

+7
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,19 @@ gem "omniauth-twitter"
2929
gem "tabulous"
3030
gem "enumerize"
3131

32+
gem "heroku", :require => false
33+
3234
group :development do
3335
gem "pry-rails"
3436
gem "awesome_print"
3537
gem "i18n_generators"
3638
end
3739

40+
group :production do
41+
gem 'pg'
42+
gem 'thin'
43+
end
44+
3845
# To use ActiveModel has_secure_password
3946
# gem 'bcrypt-ruby', '~> 3.0.0'
4047

Gemfile.lock

+22
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ GEM
2828
activesupport (3.2.2)
2929
i18n (~> 0.6)
3030
multi_json (~> 1.0)
31+
addressable (2.2.7)
3132
arel (3.0.2)
3233
awesome_print (1.0.2)
3334
builder (3.0.0)
@@ -41,11 +42,13 @@ GEM
4142
coffee-script-source (1.2.0)
4243
colored (1.2)
4344
commonjs (0.2.5)
45+
daemons (1.1.8)
4446
domain_name (0.5.2)
4547
unf (~> 0.0.3)
4648
enumerize (0.1.1)
4749
activesupport (>= 3.1.3)
4850
erubis (2.7.0)
51+
eventmachine (0.12.10)
4952
execjs (1.3.0)
5053
multi_json (~> 1.0)
5154
haml (3.1.4)
@@ -55,6 +58,11 @@ GEM
5558
haml (~> 3.0)
5659
railties (~> 3.0)
5760
hashie (1.2.0)
61+
heroku (2.22.0)
62+
launchy (>= 0.3.2)
63+
netrc (~> 0.7.1)
64+
rest-client (~> 1.6.1)
65+
rubyzip
5866
hike (1.2.1)
5967
i18n (0.6.0)
6068
i18n_generators (1.2.0)
@@ -65,6 +73,8 @@ GEM
6573
railties (>= 3.2.0, < 5.0)
6674
thor (~> 0.14)
6775
json (1.6.5)
76+
launchy (2.1.0)
77+
addressable (~> 2.2.6)
6878
less (2.0.11)
6979
commonjs (~> 0.2.0)
7080
therubyracer (~> 0.9.9)
@@ -89,6 +99,7 @@ GEM
8999
multi_json (1.1.0)
90100
net-http-digest_auth (1.2)
91101
net-http-persistent (2.5.2)
102+
netrc (0.7.1)
92103
nokogiri (1.5.2)
93104
ntlm-http (0.1.1)
94105
oauth (0.4.5)
@@ -100,6 +111,7 @@ GEM
100111
omniauth (~> 1.0)
101112
omniauth-twitter (0.0.8)
102113
omniauth-oauth (~> 1.0)
114+
pg (0.13.2)
103115
polyglot (0.3.3)
104116
pry (0.9.8.4)
105117
coderay (~> 1.0.5)
@@ -132,6 +144,9 @@ GEM
132144
rake (0.9.2.2)
133145
rdoc (3.12)
134146
json (~> 1.4)
147+
rest-client (1.6.7)
148+
mime-types (>= 1.16)
149+
rubyzip (0.9.6.1)
135150
sass (3.1.15)
136151
sass-rails (3.2.5)
137152
railties (~> 3.2.0)
@@ -148,6 +163,10 @@ GEM
148163
rails (~> 3.0)
149164
therubyracer (0.9.10)
150165
libv8 (~> 3.3.10)
166+
thin (1.3.1)
167+
daemons (>= 1.0.9)
168+
eventmachine (>= 0.12.6)
169+
rack (>= 1.0.0)
151170
thor (0.14.6)
152171
tilt (1.3.3)
153172
treetop (1.4.10)
@@ -174,14 +193,17 @@ DEPENDENCIES
174193
coffee-rails (~> 3.2.1)
175194
enumerize
176195
haml-rails
196+
heroku
177197
i18n_generators
178198
jquery-rails
179199
omniauth
180200
omniauth-twitter
201+
pg
181202
pry-rails
182203
rails (= 3.2.2)
183204
sass-rails (~> 3.2.3)
184205
sqlite3
185206
tabulous
207+
thin
186208
twitter-bootstrap-rails
187209
uglifier (>= 1.0.3)

config/initializers/heroku.rb

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# -*- coding: utf-8 -*-
2+
3+
if Rails.env.production?
4+
Rails.application.config.middleware.use OmniAuth::Builder do
5+
provider :twitter, ENV['TWITTER_KEY'], ENV['TWITTER_SECRET']
6+
end
7+
end

0 commit comments

Comments
 (0)