Compare commits

..

2 Commits

Author SHA1 Message Date
312d15718e production deploy tweaks 2015-11-15 13:42:13 -06:00
650127988e google auth update 2015-11-14 11:37:27 -06:00
6 changed files with 11 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

View File

@ -1,5 +1,3 @@
%p= link_to 'Login with Google', auth_at_provider_path(provider: :google)
-#
%h2 Something more helpful later
%p= raw(ap @doc)
%p
= link_to auth_at_provider_path(provider: :google) do
= image_tag 'btn_google_signin_light_normal_web@2x.png', size: '50%'

View File

@ -130,7 +130,7 @@ Rails.application.config.sorcery.configure do |config|
config.google.key = ENV["google_key"]
config.google.secret = ENV["google_secret"]
config.google.callback_url = "http://localhost:3000/oauth/callback?provider=google"
config.google.callback_url = ENV["google_callback"]
config.google.user_info_mapping = { email: "email", first_name: "given_name", last_name: "family_name" }
# config.vk.key = ""

5
deploy.sh Normal file
View File

@ -0,0 +1,5 @@
git pull
rake db:migrate
rake assets:precompile
touch tmp/restart.txt

View File

@ -1,5 +1,5 @@
# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
#
# To ban all spiders from the entire site uncomment the next two lines:
# User-agent: *
# Disallow: /
User-agent: *
Disallow: /