1
0
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:
2023-08-18 15:55:33 +02:00
parent 30b3a6f366
commit f014cffe41
12 changed files with 220 additions and 11 deletions

View File

@@ -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!