Defect #35190

Missing RAILS_ENV for generate_secret_token rake task

Added by Karel Pičman 5 months ago. Updated 5 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Documentation
Target version:-
Resolution:Invalid Affected version:

Description

Please update both RedmineInstall and RedmineUpgrade in order to add missing RAILS_ENV to rake generate_secret_token command, so

bundle exec rake generate_secret_token RAILS_ENV=production

instead of just

bundle exec rake generate_secret_token

History

#1 Updated by Holger Just 5 months ago

  • Status changed from New to Needs feedback

The generate_secret_token rake task does not interact with the database nor the global configuration nor any other external component. As such, it shouldn't make any different under which environment the rake task is run.

Do you see any observable difference when running this rake task under the (usual) default development rather than production?

#2 Updated by Karel Pičman 5 months ago

You're right. The problem has been finally identified in a plugin. Thank you for prodding me into searching the real cause of the problem. You can close the issue, I think.

#3 Updated by Marius BALTEANU 5 months ago

  • Status changed from Needs feedback to Closed
  • Resolution set to Invalid

Also available in: Atom PDF