redmine - Bitnami Redmine + Support_helpdesk 插件代码页问题

标签 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 windows 中输入
cd /opt/bitnami/apps/redmine/htdocs rake redmine:plugins:migrate<br/> /opt/bitnami/ctlscript.sh restart apache

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

很抱歉,出了点问题。我们已收到有关此问题的通知,我们将尽快予以处理。

我应该如何解决这个问题?感谢您的帮助,提前谢谢您。

答案:

通过使用bundle install --deployment并使用redmine 2.2.4修复,在2.3.1上可以正常启动,但加载后无法创建新问题,访问数据库时出错。

另一个问题是在获取的电子邮件正文中使用非英语语言将导致问题正文中出现难以阅读的符号,例如。 ������������,在以下模块中获取电子邮件,有什么解决办法吗?

    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

最佳答案

通过使用“bundle install --deployment”并使用 Redmine 2.2.4 修复。现在正常启动,但加载后,我无法创建新问题,访问数据库时出错。

关于redmine - Bitnami Redmine + Support_helpdesk 插件代码页问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17627970/

相关文章:

project-management - 寻找一个问题跟踪器/项目管理软件,可以根据优先级/关系自动管理开始/完成日期

javascript - Rails ajax 渲染部分

php - Bitnami 堆栈 (ec2) 上的 Woocommerce Webshop : SSL operation failed with code 1. OpenSSL 错误消息:错误:14090086

docker - 如何使用单独的数据库服务器运行Bitnami Drupal容器

linux - 永久配置 Bitnami Standalone Linux 版本的静态 IP 地址

ruby-on-rails - Redmine插件开发

ruby-on-rails - Ruby on Rails 应用程序无法启动

ruby-on-rails - 多个 redmine 实例最佳实践

ruby-on-rails - MS Azure 上的 Bitnami Mongodb ReplicaSet 设置问题 - 辅助节点延迟响应

php - HTTPS 给出 404 未找到错误