mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-27 02:28:50 +01:00
Add Workflow for building and releasing Docker image
This commit is contained in:
@@ -1,5 +1,19 @@
|
||||
# Load the Rails application.
|
||||
require_relative "application"
|
||||
|
||||
# Replace when upgrading to Rails 7.1
|
||||
# See https://github.com/rails/rails/issues/32947#issuecomment-1356391185
|
||||
class Rails::Application
|
||||
def secret_key_base
|
||||
if Rails.env.development? || Rails.env.test? || ENV["SECRET_KEY_BASE_DUMMY"]
|
||||
secrets.secret_key_base ||= generate_development_secret
|
||||
else
|
||||
validate_secret_key_base(
|
||||
ENV["SECRET_KEY_BASE"] || credentials.secret_key_base || secrets.secret_key_base
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Initialize the Rails application.
|
||||
Rails.application.initialize!
|
||||
|
||||
Reference in New Issue
Block a user