#10 Add config for production env.

This commit is contained in:
2015-11-10 21:56:30 +08:00
parent c2c0c1e42f
commit e52f257d9b
+5 -2
View File
@@ -265,7 +265,10 @@ Devise.setup do |config|
# so you need to do it manually. For the users scope, it would be:
# config.omniauth_path_prefix = '/my_engine/users/auth'
config.omniauth :weibo, '3760369619', 'c39d951278dfcc5fc55b15e1808e210f', :scope => 'user,public_repo'
if Rails.env.production?
config.omniauth :weibo, '1154990879', '6b901a95751bf222fbe5c51451da5078', :scope => 'user,public_repo'
else
config.omniauth :weibo, '3760369619', 'c39d951278dfcc5fc55b15e1808e210f', :scope => 'user,public_repo'
end
end