Redmine 配置

如果需要覆盖默认的Redmine配置,最简单的方式就是复制config/configuration.yml.example为config/configuration.yml,然后修改这个配置文件。修改完需要重启Redmine服务才能生效。

EMAIL /SMTP 服务器设置

参考 http://www.cnblogs.com/fromchaos/archive/2011/09/23/2185759.html

SCM 设置

# Configuration of SCM executable command.
# Absolute path (e.g. /usr/local/bin/hg) or command name (e.g. hg.exe, bzr.exe)
# On Windows, *.cmd, *.bat (e.g. hg.cmd, bzr.bat) does not work.
# Examples:
# scm_subversion_command: svn                                       # (default: svn)
# scm_mercurial_command:  C:\Program Files\TortoiseHg\hg.exe        # (default: hg)
# scm_git_command:        /usr/local/bin/git                        # (default: git)
# scm_cvs_command:        cvs                                       # (default: cvs)
# scm_bazaar_command:     bzr.exe                                   # (default: bzr)
# scm_darcs_command:      darcs-1.0.9-i386-linux                    # (default: darcs)
scm_subversion_command:   C:\Program Files\VisualSVN Server\bin\svn.exe
scm_mercurial_command:
scm_git_command:
scm_cvs_command:
scm_bazaar_command:
scm_darcs_command:

附件存储路径设置

# Absolute path to the directory where attachments are stored.
# The default is the 'files' directory in your Redmine instance.
# Your Redmine instance needs to have write permission on this
# directory.
# Examples:
# attachments_storage_path: /var/redmine/files
# attachments_storage_path: D:/redmine/files
attachments_storage_path:

日志功能配置

复制config/additional_environment.rb.exampleconfig/additional_environment.rb 并增加如下几行

#Logger.new(PATH,NUM_FILES_TO_ROTATE,FILE_SIZE)
config.logger = Logger.new(config.log_path, 2, 1000000)
config.logger.level = Logger::INFO

备份

备份应该包含:数据备份和附件备份


简单的日常备份脚本如下(假设你使用的是mysql数据库):

# Database
/usr/bin/mysqldump -u <username> -p<password> <redmine_database> | gzip > /path/to/backup/db/redmine_`date +%y_%m_%d`.gz

# Attachments
rsync -a /path/to/redmine/files /path/to/backup/files

posted on 2011-09-23 10:25  Peter Zhang  阅读(11486)  评论(1编辑  收藏  举报