fix the warning of secret_key for devise
This commit is contained in:
@@ -6,6 +6,7 @@ RUN apt-get update -qq && apt-get install -y build-essential libpq-dev postgresq
|
||||
|
||||
|
||||
|
||||
|
||||
# Define where our application will live inside the image
|
||||
ENV RAILS_ROOT /var/www/consul
|
||||
|
||||
@@ -22,6 +23,8 @@ COPY Gemfile Gemfile
|
||||
|
||||
COPY Gemfile.lock Gemfile.lock
|
||||
|
||||
COPY Gemfile_custom Gemfile_custom
|
||||
|
||||
# Prevent bundler warnings; ensure that the bundler version executed is >= that which created Gemfile.lock
|
||||
RUN gem install bundler
|
||||
|
||||
|
||||
2
Gemfile
2
Gemfile
@@ -93,4 +93,4 @@ group :development do
|
||||
end
|
||||
|
||||
#this is crashing with the Dockerfile
|
||||
#eval_gemfile './Gemfile_custom'
|
||||
eval_gemfile './Gemfile_custom'
|
||||
|
||||
@@ -6,7 +6,7 @@ Devise.setup do |config|
|
||||
# confirmation, reset password and unlock tokens in the database.
|
||||
# Devise will use the `secret_key_base` on Rails 4+ applications as its `secret_key`
|
||||
# by default. You can change it below and use your own secret key.
|
||||
# config.secret_key = Rails.application.secrets.secret_key_base
|
||||
config.secret_key = Rails.application.secrets.secret_key_base
|
||||
|
||||
# ==> Mailer Configuration
|
||||
# Configure the e-mail address which will be shown in Devise::Mailer,
|
||||
|
||||
Reference in New Issue
Block a user