Projekt

Allgemein

Profil

Redmine bitnami 3 0 3 0 » Historie » Version 2

Jeremias Keihsler, 23.01.2017 10:48

1 1 Jeremias Keihsler
h1. Bitnami 3.0.3-0
2
3
h2. MySQL Redmine-Scripts
4
5
h3. Create MySQL-Reader-User
6
7
<pre><code class="sql">
8
mysql -u root -p
9
grant select on bitnami_redmine.* to 'redmine_reader'@'localhost';
10
</code></pre>
11
12
h2. Troubleshoot imap
13
14
change @/opt/redmine-3.0.3-0/ruby/lib/ruby/2.0.0/net/imap.rb@ line ~1429
15
16
<pre><code class="ruby">
17
    def create_ssl_params(certs = nil, verify = true)
18
      params = {}
19
      if certs
20
        if File.file?(certs)
21
          params[:ca_file] = certs
22
        elsif File.directory?(certs)
23
          params[:ca_path] = certs
24
        end
25
      end
26
      if verify
27
      #  params[:verify_mode] = VERIFY_PEER
28
      #  taken out by JKE 2015-07-06
29
        params[:verify_mode] = VERIFY_NONE
30
      else
31
        params[:verify_mode] = VERIFY_NONE
32
      end
33
      return params
34
    end
35
</code></pre>
36 2 Jeremias Keihsler
37
h2. setup log-rotating
38
39
h3. Redmine
40
41
The Bitnami-Stack does not preconfigure log-rotating for the @production.log@ located in @/opt/redmine-3.0.3-0/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-3.0.3-0/apps/redmine/htdocs/config/environments/production.rb@ and restart the Bitnami-Stack.
42
43
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@.
44
45
<pre><code class="ruby">
46
# 7 log-files, 20MB each
47
config.logger = Logger.new('/opt/redmine-3.0.3-0/apps/redmine/htdocs/log/production.log', 7, 20971520)
48
config.logger.level = Logger::INFO
49
</code></pre>
50
51
<pre>
52
[root@redmine ~]# cd /opt/redmine-3.0.3-0/apps/redmine/htdocs/log/
53
[root@redmine log]# ll
54
total 1120
55
-rwxrwxr-x. 1 root   daemon      36 Jun 18  2012 delete.me
56
-rw-r--r--. 1 daemon daemon   12158 Jul  9 09:36 production.log
57
-rw-rw-r--. 1 root   daemon   30053 Jul  9 09:28 production.log.0
58
-rwxrwxr-x. 1 root   daemon 1093571 Jul  9 08:59 production.log.1
59
</pre>