use encrypted cookies on new installations
This commit is contained in:
parent
7841245795
commit
ab514d7eb6
4 changed files with 8 additions and 4 deletions
|
|
@ -106,7 +106,7 @@ def setup_secret_token
|
|||
puts yellow "Generating secret_token and writing to #{file}..."
|
||||
Rake::Task["secret"].reenable
|
||||
secret = capture_stdout { Rake::Task["secret"].invoke }
|
||||
%x( touch #{Rails.root.join("#{file}")}; echo 'Foodsoft::Application.config.secret_token = "#{secret.chomp}"' > #{Rails.root.join("#{file}")} )
|
||||
%x( touch #{Rails.root.join("#{file}")}; echo 'Foodsoft::Application.config.secret_key_base = "#{secret.chomp}"' > #{Rails.root.join("#{file}")} )
|
||||
end
|
||||
|
||||
def start_mailcatcher
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue