Devise.secret_key was not set.のエラーの対処

capistranoでデプロイ中に下記のエラーが出ました

DEBUG[587de510] 	config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly:
DEBUG[587de510]
DEBUG[587de510] 	  * development - set it to false
DEBUG[587de510] 	  * test - set it to false (unless you use a tool that preloads your test environment)
DEBUG[587de510] 	  * production - set it to true
DEBUG[587de510]
DEBUG[587de510] 	rake aborted!
DEBUG[587de510] 	Devise.secret_key was not set. Please add the following to your Devise initializer:
DEBUG[587de510]
DEBUG[587de510] 	  config.secret_key = '33865d4b3a014f3db880c073d3f8e2dd92aa0846b6eaec061381a226235043d4ca1aedeefefa33d949d0be28ea367a6d2f279feb64154c2abf02a6b8957be2b1'

config/initializers/devise.rb内の"config.secret_key"の行のコメントアウトをキャンセルしたら通りました。