2017-01-17から1日間の記事一覧
1. application_controller.rbに以下の一文を追加する http_basic_authenticate_with :name => ENV['BASIC_AUTH_USERNAME'], :password => ENV['BASIC_AUTH_PASSWORD'] if Rails.env == "production" 2. Herokuの環境変数にBasic認証用のユーザー名とパスワ…
1. application_controller.rbに以下の一文を追加する http_basic_authenticate_with :name => ENV['BASIC_AUTH_USERNAME'], :password => ENV['BASIC_AUTH_PASSWORD'] if Rails.env == "production" 2. Herokuの環境変数にBasic認証用のユーザー名とパスワ…