use encrypted cookies on new installations
This commit is contained in:
parent
7841245795
commit
ab514d7eb6
4 changed files with 8 additions and 4 deletions
|
|
@ -70,7 +70,7 @@ namespace :deploy do
|
|||
require 'securerandom'
|
||||
on roles(:app), in: :groups do
|
||||
secret = SecureRandom.hex(64)
|
||||
text = "Foodsoft::Application.config.secret_token = \"#{secret}\""
|
||||
text = "Foodsoft::Application.config.secret_key_base = \"#{secret}\""
|
||||
execute :mkdir, '-p', shared_path.join("config/initializers")
|
||||
upload! StringIO.new(text), shared_path.join("config/initializers/secret_token.rb")
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue