Projekt

Allgemein

Profil

Aktionen

Install

Config

setup email

add following parameter to /opt/redmine-2.0.3-1/apps/redmine/htdocs/config/configuration.yml

# about line 83
# default configuration options for all environments
default:
  # Outgoing emails configuration (see examples above)
  email_delivery:
    delivery_method: :smtp
    smtp_settings:

      address: "mail.example.com" 
      port: 25 #587
      domain: 'example.com'
      authentication: :plain
      user_name: "redmine@example.com" 
      password: "secret" 
      openssl_verify_mode: 'none'
      #enable_starttls_auto: true

although somehow redundant add following information to the [SMTP] section in /opt/redmine-2.0.3-1/properties.ini

# about line 31
[SMTP]
smtp_host=mail.example.com
smtp_port=587
smtp_user=redmine@example.com
smtp_password=secret
smtp_protocol=tls

setup log-rotating

The Bitnami-Stack does not preconfigure log-rotating for the production.log located in /opt/redmine-2.0.3-1/apps/redmine/htdocs/log. Although you could use the standard Logrotate it's recommended (http://www.redmine.org/boards/2/topics/11836) to use the Ruby-functionality. Add following parameter to /opt/redmine-2.0.3-1/apps/redmine/htdocs/config/environments/production.rb and restart the Bitnami-Stack.

According to http://www.redmine.org/issues/11603 you have to provide a file directly to Logger.new instead of the sample in the production.rb.

# 7 log-files, 20MB each
config.logger = Logger.new('/opt/redmine-2.0.3-1/apps/redmine/htdocs/log/production.log', 7, 20971520)
config.logger.level = Logger::INFO
[root@redmine ~]# cd /opt/redmine-2.0.3-1/apps/redmine/htdocs/log/
[root@redmine log]# ll
total 1120
-rwxrwxr-x. 1 root   daemon      36 Jun 18  2012 delete.me
-rw-r--r--. 1 daemon daemon   12158 Jul  9 09:36 production.log
-rw-rw-r--. 1 root   daemon   30053 Jul  9 09:28 production.log.0
-rwxrwxr-x. 1 root   daemon 1093571 Jul  9 08:59 production.log.1

Von Jeremias Keihsler vor fast 8 Jahren aktualisiert · 1 Revisionen