Added by James Gastovski over 9 years ago
I'm struggling to make redmine receiving emails using rake task. Once I'm trying to execute the task redmine:email:receive_imap an error occurs saying:
"rake aborted! Mysql2::Error: Access denied for user 'root'@'localhost' (using password: NO)"
I founded out that rake is trying to connect to developer database instead of production. Does anyone know how to switch rake to 'production'?
You need to define RAILS_ENV environment variable.