Created
May 30, 2013 06:36
-
-
Save is8r/5676063 to your computer and use it in GitHub Desktop.
herokuにBasic認証をかける
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#app/controllers/application_controller.rbに | |
http_basic_authenticate_with :name => ENV["BASIC_AUTH_NAME"], :password => ENV["BASIC_AUTH_PW"] if Rails.env.production? | |
$ heroku config:add BASIC_AUTH_NAME=xxxx | |
$ heroku config:add BASIC_AUTH_PW=xxxx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment