zoukankan      html  css  js  c++  java
  • 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


    By Peter.zhang

    From:Peter's Blog                            

    MSN: peter.zhang@live.cn

    电子邮箱:peter.zhang@foxmail.com

  • 相关阅读:
    06 Python字符编码与文件处理
    05 基本数据类型+五大数据类型
    04 Python入门学习-流程控制(if else elif while for)
    《算法导论》学习总结 — XX.第22章 图的基本算法
    Google在KDD2013上关于CTR的一篇论文
    二项堆
    B树、B+树、B*树
    mysql sql语句大全
    红黑树
    《算法导论》学习总结 — 13. 第13章 红黑树(2)
  • 原文地址:https://www.cnblogs.com/fromchaos/p/2185879.html
Copyright © 2011-2022 走看看