Friday, 5 June 2009

Installing plugins to Redmine

Installing plugins to Redmine is both simple and not so simple. There are two problems:
All plugins don't seem to install (the install process gets stuck on these, at least occasionally) and then there's the issue of restarting the system...

The steps to install a Redmine plugin are:
  1. Download the plugin, some useful ones can be found from Redmine's Wiki.
  2. Unzip the archive to redmine/vendor/plugins (some require that the directory you create is named in a certain way).
  3. (Change to bitnami stack with ./use_redmine if you are using that)
  4. Go to your redmine installation directory.
  5. rake db:migrate_plugins RAILS_ENV=production to migrate the plugins (not every plugin requires this, but most seems to).
  6. ps axf | grep mongrel (or replace mongrel with what ever backend you are using)
  7. Search the part that says something like tmp/pids/mongrel.3002.pid (I have two of those).
  8. For each process, do mongrel_rails restart -P <redmine dir>/tmp/pids/mongrel.3002.pid obviously replacing the file name with the correct one from the ps output.
I noticed that if I didn't start both processes again, I got occasional "Page not found" errors in Redmine, even though clicking the link again opened the page.

No comments:

Post a Comment