Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Revert "Bump rails from 7.1.3.4 to 7.2.0" #650

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

FinnIckler
Copy link
Member

Reverts #648
There seems to be something wrong with using our AppSecret implementation in the config file (maybe this is related https://blog.driftingruby.com/rails-7-2-upgrade-problems-of-my-own-making/ ?).
The actual message we are getting is

/usr/local/bundle/gems/railties-7.2.0/lib/rails/application/configuration.rb:519:in `secret_key_base=': Missing `secret_key_base` for 'production' environment, set this string with `bin/rails credentials:edit` (ArgumentError)
	
handler
August 20, 2024 at 15:12 (UTC-4:00)
	
raise ArgumentError, "Missing `secret_key_base` for '#{Rails.env}' environment, set this string with `bin/rails credentials:edit`"
	
handler
August 20, 2024 at 15:12 (UTC-4:00)
	
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	
handler
August 20, 2024 at 15:12 (UTC-4:00)
	
from /usr/local/bundle/gems/railties-7.2.0/lib/rails/application/configuration.rb:503:in `secret_key_base'

Even though it is set in the secrets.yml through AppSecrets

@FinnIckler FinnIckler merged commit 0d43dd8 into main Aug 20, 2024
1 check passed
@FinnIckler
Copy link
Member Author

mh.... Ok it seems like the secret.yml has been removed in 7.20 (3.1 https://edgeguides.rubyonrails.org/7_2_release_notes.html Remove deprecated Rails.application.secrets.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant