- I copied the Trac db from the other machine to this (there apparently is some way of doing this remotely, but this was much easier).
- cd redmine-0.8.4-0
- ./use_redmine
- cd ruby/bin
- gem install sqlite3-ruby
- cd ../../apps/redmine
- rake redmine:migrate_from_trac RAILS_ENV="production"
Trac directory []: /var/trac/myprojectAnd tadaa! When I opened Redmine in my browser all the tickets etc. are visible. Job done. Pretty much everything else was described on this page (and this for some ), but since I used Bitnami's stack, I had to do the "./use_redmine" thing to get the sqlite3 gem installed inside the stack.
Trac database adapter (sqlite, sqlite3, mysql, postgresql) [sqlite]: sqlite3
Database encoding [UTF-8]:
Target project identifier []: myproject
EDIT: Damn! Wiki pages didn't transfer correctly, only one page and that one is wrongly formatted.
EDIT2: Damn damn. The Trac database used LDAP as the authentication method and Redmine doesn't support it. This is probably the reason why I can't log into the db, just view it.
EDIT3: Ah, things are looking up. The Wiki thing is no biggie, in this database there was just one page, so it's just a matter of fixing the formatting (mainly links). The password thing was much more complicated, this is what was required:
- cd redmine-0.8.4-0
- ./use_redmine
- cd apps/redmine
- RAILS_ENV=production script/runner 'user = User.find(:first, :conditions => {:admin => true}) ; user.password, user.password_confirmation = "my_password"; user.save!'
- RAILS_ENV=production script/runner 'puts User.find(:first, :conditions => {:admin => true}).login'
RedMine has support for Ldap.
ReplyDeleteYes, that was old info. I did get the LDAP support already last summer, so thanks for pointing out this omission in my article.
ReplyDelete