Step-by-step quick installation of Redmine + SVN on Windows
Through trial and error, I have done a quick setup of Redmine + SVN on Windows. This does not use Apache and WebDAV. The Ruby on Rails webserver, Mongrel, is used, and SVN is accessed through svnserve (svn://). If you need a full deployment of Redmine, with automatic generation of SVN repositories and SVN accounts, this can be a starting point (let me know how you got it to work!). If you want a quick and dirty setup, this may be the only guide you need!
Here are the steps:
- Go to http://rubyonrails.org/
download - Install Ruby
- Install RubyGems
- Run [ gem install rails ]
- Run [ gem install mysql ] (in case we want to use mysql as db, sqlite is fine though)
- Run [ gem install rake ]
- Run [ gem install sqlite3-ruby ]
- Extract redmine (I extracted to C:\Ruby\redmine-0.8.4)
- Browse to redmine folder/config
- Copy database.yml.example to database.yml
- Set database options for production:
- In production:
- adapter: sqlite3
- dbfile: db/prod.db
- host: localhost
- In production:
- Get sqlite3.dll from sqlite 3 distribution (http://www.sqlite.org) and put in Ruby/bin directory
- Browse to Redmine directory in command prompt
- Run [ rake db:migrate RAILS_ENV="production" ]
- Run [ rake redmine:load_default_data RAILS_ENV="production" ]
- Run [ gem install mongrel ]
- Run [ gem install mongrel_service ]
- Run [ mongrel_rails service::install -N Redmine_Server -D "Redmine Server on Mongrel" -e "production" ]
- Start service and set to “Automatic”
- Username: admin Password: admin
- Refer to http://www.redmine.org/wiki/
redmine/RedmineInstall for SMTP config (If you want emails generated for tickets, etc.) - Install CollabNet SVN as svnservice (WebDAV not needed), svn root C:\svn_repository
- Start service “CollabNet Subversion svnserve”
- Run [ svnadmin create c:\svn_repository ]
- Uncomment anon-access = read, auth-access = write, password-db = passwd in svnserve.conf
- Add users to Redmine, have user change password to whatever they want it to
- Add users to passwd (same username), all plaintext, so create random passwords for each user and have them record it (cannot be changed unless requested by admin, and admin will know what pw is)
- Restart Redmine_Server service
- Create subfolders for projects, and trunk/tags/branches for each project
- Add svn://localhost/projectname as project root for each project in Redmine