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

  • 相关阅读:
    Windows 和 Linux下使用socket下载网页页面内容(可设置接收/发送超时)的代码(用socket解释http,不错)
    HTTP协议 HttpWebRequest和 Socket的一点总结
    ASP.NET MVC基础学习
    利用HttpWebRequest和HttpWebResponse获取Cookie并实现模拟登录
    C#中Hashtable容器的了解与使用
    lib 和 dll 的区别、生成以及使用详解
    将SQL获取的信息传递到Email中
    关于ref与out的区别
    C#中指针使用总结
    一个打包文件导入器
  • 原文地址:https://www.cnblogs.com/fromchaos/p/2185879.html
Copyright © 2011-2022 走看看