Keywords: Redmine - Windows - How to - Other
Hello , I have some trouble at Ruby batch file at Bitnami Redmine.
I use Bitnami Redmine 3.4.5 and Ruby 2.3.3 at Windows10.
When I try to use Redmine's Ruby batch file from Windows Command Line, it doesn't work, especially "rake" command.
I tried to send users reminder mail every day so I made following batch file.
' Cd /d C\Bitnami\redmine\apps\redmine\htdocs
"C\Bitnami\redmine\ ruby\bin\bundle.bat\" exec rake redmine:send_reminders project=hoo dats=7 RAILS_ENV=production '
This worked for a week but after restart server with this command at Bitnami Redmine Stack Environment , I got following error.
@Bitnami Redmine Stack Environment
'Bundle install --without development test --no-deployment'
After successfully complete this command, I restart server from Bitnami Stack Environment Tool.
'C:\Bitnami\redmine\apps\redmine\htdocs>"C:\Bitnami\redmine\ruby\bin\bundle.bat" exec rake redmine:send_reminders project=m-hour days=7 RAILS_ENV="production"
Your Gemfile lists the gem mime-types (~> 3.0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
bundler: command not found: rake
Install missing gem executables with `bundle install`'
Error says there is no "rake" command though I can check the pass of it from Bitnami Redmine Stack Environment.
'C:\Bitnami\redmine\apps\redmine\htdocs>gem which rake
I think "rake" command is exist so "bundle.bat" or "ruby.exe" have some problem.
How can I solve this?
Thank you for reading my poor English.