Bitnami Redmine + Support_helpdesk插件代码页问题

时间:2013-07-13 07:22:21

标签: redmine bitnami

我正在尝试在bitnami-redmine-2.3.1-3-ubuntu-12.04上安装support_helpdesk插件(https://github.com/pvdvreede/support_helpdesk)。我做了什么:

cd /opt/bitnami/apps/redmine/htdocs
git clone git://github.com/pvdvreede/support_helpdesk.git plugins/support_helpdesk
bundle install
rake db:migrate_plugins RAILS_ENV=production (there was an error about redis)
wget http://redis.googlecode.com/files/redis-2.6.14.tar.gz
tar xzf redis-2.6.14.tar.gz
cd redis-2.6.14
make  
sudo apt-get update
sudo apt-get install tcl8.5 (redis doesn't work without this module)
make test (no errors after that)
/src/redis-server

在另一个ssh窗口中输入
cd /opt/bitnami/apps/redmine/htdocs rake redmine:plugins:migrate
/opt/bitnami/ctlscript.sh restart apache

之后我无法打开我的http://my.host/redmine/,错误:

我们很抱歉,但出了点问题。我们已经收到有关此问题的通知,我们很快就会对其进行审核。

我应该尝试解决这个问题?感谢任何帮助,提前谢谢。

答案:

使用bundle install -demployment和使用redmine 2.2.4修复,2.3.1上可以正常启动,但加载后,无法创建新问题,访问db时出错。

另一个问题是在获取的电子邮件正文中使用非英语语言将导致问题体中的不可读符号,例如。 ,在轰鸣声模块中提取的电子邮件,任何想法如何解决?

    require "#{File.dirname(__FILE__)}/../spec_helper"
    describe Support::Participants::CreateIssueBody do
      let(:participant) { Support::Participants::CreateIssueBody.new }
      let(:plain_basic_email) do
        Mail::Message.new(File.read(File.join(email_dir, "plain_basic.eml")))
      end
      let(:multi_basic_email) do
        Mail::Message.new(File.read(File.join(email_dir, "multi_basic.eml")))
      end
      let(:html_basic_email) do
        Mail::Message.new(File.read(File.join(email_dir, "html_basic.eml")))
      end
      before do
        participant.extend Support::Spec::Reply
        $reply = nil
        participant.workitem = workitem
      end
      context 'when there is plain text only' do
        let(:workitem) do
          create_workitem({
            'email' => plain_basic_email.to_yaml
          })
        end
        it 'will set the body as plain text' do
          participant.on_workitem
          $reply.fields['email_body'].should eq "Plain email.\n\nHope it works well!\n\nMikel"
        end
      end
      context 'when there is html only' do
        let(:workitem) do
          create_workitem({
            'email' => html_basic_email.to_yaml
          })
        end
        it 'will set the body to say it cannot render the body' do
          participant.on_workitem
          $reply.fields['email_body'].should eq "Cannot add body, please open attached email file."
        end
      end
      context 'when there is multipart' do
        let(:workitem) do
          create_workitem({
            'email' => multi_basic_email.to_yaml
          })
        end
        it 'will set the body as the plain text body' do
          participant.on_workitem
          $reply.fields['email_body'].should eq "This is a test *multi part* email.\n\nRegards,\n\nPaul."
        end
      end
      context 'when the email has Chinese characters' do
      end
    end

1 个答案:

答案 0 :(得分:2)

通过使用'bundle install --deployment'并使用Redmine 2.2.4进行修复。现在正常启动,但加载后,我无法创建新问题,错误访问db。