mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-26 18:18:51 +01:00
Add Workflow for building and releasing Docker image
This commit is contained in:
@@ -27,5 +27,5 @@ production:
|
||||
database: <%= ENV['DATABASE_NAME'] %>
|
||||
username: <%= ENV['DATABASE_USERNAME'] %>
|
||||
password: <%= ENV['DATABASE_PASSWORD'] %>
|
||||
host: 127.0.0.1
|
||||
port: 3306
|
||||
host: <%= ENV['DATABASE_HOST'] %>
|
||||
port: <%= ENV['DATABASE_PORT'] %>
|
||||
|
||||
@@ -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!
|
||||
|
||||
@@ -18,7 +18,7 @@ Rails.application.configure do
|
||||
|
||||
# Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
|
||||
# or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
|
||||
config.require_master_key = true
|
||||
config.require_master_key = false
|
||||
|
||||
# Disable serving static files from the `/public` folder by default since
|
||||
# Apache or NGINX already handles this.
|
||||
|
||||
Reference in New Issue
Block a user