Friday, April 15, 2011

Redmine (project management web application)

Redmine (project management web application)
  • Multiple projects support
  • Flexible role based access control
  • Flexible issue tracking system
  • Gantt chart and calendar
  • News, documents & files management
  • Feeds & email notifications
  • Per project wiki
  • Per project forums
  • Time tracking
  • Custom fields for issues, time-entries, projects and users
  • SCM integration (SVN, CVS, Git, Mercurial, Bazaar and Darcs)
  • Issue creation via email
  • Multiple LDAP authentication support
  • User self-registration support
  • Multilanguage support
  • Multiple databases support


Redmine is a flexible project management web application. Written using Ruby on Rails framework, it is cross-platform and cross-database.


http://rubyonrails.org/download

http://www.redmine.org/wiki/redmine/RedmineInstall

ruby -v
ruby 1.8.5 (2006-08-25) [x86_64-linux]

wget http://rubyforge.org/frs/download.php/57643/rubygems-1.3.4.tgz

extract & run

ruby setup.rb

Now install

gem install rails -v=2.2.2

### Create DB in Mysql
create database redmine character set utf8;
create user 'redmine'@'localhost' identified by 'my_password';
grant all privileges on redmine.* to 'redmine'@'localhost';

wget http://rubyforge.org/frs/download.php/56909/redmine-0.8.4.tar.gz

extract &

mv redmine-0.8.4 /root/redmine

cd /root/redmine

Copy config/database.yml.example to config/database.yml and edit this file in order to configure your database settings for "production" environment.

production:
adapter: mysql
database: redmine
host: localhost
username: root
password: admin
encoding: utf8


### Redmine stores session data in cookies by default, which requires a secret to be generated. This can be done by running:

rake config/initializers/session_store.rb

### Create the database structure, by running the following command under the application root directory:

rake db:migrate RAILS_ENV="production"

It will create tables and an administrator account.

### Insert default configuration data in database, by running the following command:

rake redmine:load_default_data RAILS_ENV="production"

chmod -R 755 files log tmp public

ruby script/server webrick -e production

Ready to access http://localhost:3000/.
admin
admin


Make a startp script
cd /root/redmine
ruby script/server webrick -e production &

sh redmines.sh (copy above contains & modifiy according ur path)



##### How to rest a admin password if u forget
To find the email account for the admin user to use with the list password link ( u need to be in ur redmine directory)

RAILS_ENV=production script/runner 'puts User.find(:first, :conditions => {:admin => true}).mail'

Find the first admin user and set their password to 'my_password'¶

RAILS_ENV=production script/runner 'user = User.find(:first, :conditions => {:admin => true}) ; user.password, user.password_confirmation = "password"; user.save!'

No comments: