Whoops!
Need the updated environment.rb too.
This commit is contained in:
parent
7600aef48b
commit
05a4b171f7
|
@ -9,7 +9,7 @@ $:.unshift('vendor/plugins/rexml/lib') if (rexml_versions[0] <=> rexml_versions[
|
||||||
|
|
||||||
require File.join(File.dirname(__FILE__), 'boot')
|
require File.join(File.dirname(__FILE__), 'boot')
|
||||||
|
|
||||||
require 'rails_generator/secret_key_generator'
|
require 'active_support/secure_random'
|
||||||
|
|
||||||
Rails::Initializer.run do |config|
|
Rails::Initializer.run do |config|
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ Rails::Initializer.run do |config|
|
||||||
if File.exist?(secret_file)
|
if File.exist?(secret_file)
|
||||||
secret = File.read(secret_file)
|
secret = File.read(secret_file)
|
||||||
else
|
else
|
||||||
secret = Rails::SecretKeyGenerator.new("Instiki").generate_secret
|
secret = ActiveSupport::SecureRandom.hex(64)
|
||||||
File.open(secret_file, 'w', 0600) { |f| f.write(secret) }
|
File.open(secret_file, 'w', 0600) { |f| f.write(secret) }
|
||||||
end
|
end
|
||||||
config.action_controller.session = {
|
config.action_controller.session = {
|
||||||
|
|
Loading…
Reference in a new issue