Skip to content

Commit

Permalink
fix: rails secret 字符做兼容处理
Browse files Browse the repository at this point in the history
  • Loading branch information
icyleaf committed Mar 8, 2024
1 parent d85e79d commit a62f7d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# if you're sharing your code publicly.

x-default: &default
secret_key_base: <%= ENV['SECRET_TOKEN'] || 'd42f6363da844381a4dfa25d76a4d0c0b992b5de907a165a21fa9a01662e05792915e6537ecbc4d3d55c0de5e9d159d96ba035ff517f9cff27d5bf0c2d55830b' %>
secret_key_base: "<%= ENV['SECRET_TOKEN'] || 'd42f6363da844381a4dfa25d76a4d0c0b992b5de907a165a21fa9a01662e05792915e6537ecbc4d3d55c0de5e9d159d96ba035ff517f9cff27d5bf0c2d55830b' %>"

development:
<<: *default
Expand All @@ -20,4 +20,4 @@ test:
<<: *default

production:
secret_key_base: <%= ENV['SECRET_TOKEN'] %>
secret_key_base: "<%= ENV['SECRET_TOKEN'] %>"

0 comments on commit a62f7d4

Please sign in to comment.