use encrypted cookies on new installations

This commit is contained in:
wvengen 2014-01-16 13:01:11 +01:00
parent 7841245795
commit ab514d7eb6
4 changed files with 8 additions and 4 deletions

View file

@ -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