首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Bitnami Redmine + Support_helpdesk插件代码页问题

Bitnami Redmine + Support_helpdesk插件代码页问题
EN

Stack Overflow用户
提问于 2013-07-13 15:22:21
回答 1查看 1K关注 0票数 2

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

代码语言:javascript
复制
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 windows中键入

cd /opt/bitnami/apps/redmine/htdocs rake redmine:plugins:migrate

/opt/bitnami/ctlscript.sh restart apache

在那之后,我无法打开我的http://my.host/redmine/,并出现错误:

我们很抱歉,但是出了点问题。我们已经收到了关于这个问题的通知,我们很快就会看到这个问题。

我应该尝试什么来解决这个问题?感谢您的帮助,提前谢谢您。

答案:

修复通过使用包安装-部署和使用redmine 2.2.4,在2.3.1上可以正常启动,但在加载后,无法创建新问题witt错误访问数据库。

另一个问题是在获取的电子邮件正文中使用非英语语言会导致问题正文中的符号不可读,例如。������������,电子邮件在下面的模块中获取,有什么想法如何修复吗?

代码语言:javascript
复制
    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
EN

回答 1

Stack Overflow用户

发布于 2013-07-27 11:15:03

通过使用'bundle install --deployment‘和Redmine 2.2.4修复。现在正常启动,但加载后,我无法创建新的问题,错误访问数据库。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17627970

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档