在redmine bitnami中,我尝试安装redmine聊天。 该插件位于下方。
http://www.redmine.org/plugins/redmine_chat
我按照这个页面的解释做了,但我不能。 显示ruby的错误消息。 我的环境是
·windows 10 ·只安装bitnam redmine
如果有人知道如何安装redmine聊天,请告诉我。 我想知道安装程序。
以下是安装说明。 如果你可以安装它,请告诉我命令行和程序。
p.s我使用zip文件并放入“plugins”文件夹目录。
首先简要介绍一下,除非未来版本为0.1.0,否则不建议安装它 1.安装过程 来自插件方向的bitbucket的Git:git clone https://39648421@bitbucket.org/39648421/redmine_chat.git 或者从bitbucket下载并将zip文件扩展到plugins目录并通过redmine_chat命名 在redmine主目录中,运行:bundle install --without development test。 如果你已经从tigergm的github捆绑了,请运行bundle update private_pub 在redmine主目录中,运行:RAILS_ENV = production rails g private_pub:install。它会生成一些模板文件 在redmine主目录中编辑private_pub.ru文件,例如更改mysql sqlite3 在config目录中编辑private_pub.yml文件,例如根据服务器的ip或域名生成服务器 在redmine主目录中,启动faye服务器,分发和监控聊天消息,可能需要在bundle exec之前。你可以在最后添加“-D”作为backgound守护进程。跑: rackup private_pub.ru -s thin -E production 其他示例如果你想全部听: rackup -o 0.0.0.0 private_pub.ru -s thin -E production 迁移redmine主目录中的数据库文件,运行: bundle exec rake redmine:plugins:migrate NAME = redmine_chat RAILS_ENV = production 重启redmine并使用插件。
我试图更改插件的gemfile并进行了bundle install --no-deployment。 执行此操作后,运行rake命令。 安装成功,但在production.log中显示了错误消息。 帮助我。
ActionView :: Template :: Error(缺少部分布局/ _chat_head,{:locale => [:ja,:en],:formats => [:html],:variants => [],: handlers => [:erb,:builder,:raw,:ruby,:rsb]}。搜索:
*“C:/Bitnami/redmine-3.3.1-0/apps/redmine/htdocs/app/views”
):
13:<%= stylesheet_link_tag'rtl',:media => 'all'如果l(:direction)=='rtl'%>
14:<%= javascript_heads%>
15:<%= heads_for_theme%>
16:<%= call_hook:view_layouts_base_html_head%>
17:
18:<%= yield:header_tags - %>
19:
lib / redmine / hook / view_listener.rb:59:in block (2 levels) in render_on'
lib/redmine/hook/view_listener.rb:57:in
map'
lib / redmine / hook / view_listener.rb:57:在call_hook'block in render_on'
lib/redmine/hook.rb:61:in
块(2级)中
lib / redmine / hook.rb:61:在call_hook中的each'
lib/redmine/hook.rb:61:in
块中
lib / redmine / hook.rb:58:in tap'
lib/redmine/hook.rb:58:in
call_hook'
lib / redmine / hook.rb:96:in call_hook'
app/views/layouts/base.html.erb:16:in
_ app_views_layouts_base_html_erb__911853101_45405108'
app / controllers / application_controller.rb:488:in block (2 levels) in render_error'
app/controllers/application_controller.rb:486:in
render_error'
app / controllers / application_controller.rb:474:in render_404'
app/controllers/application_controller.rb:498:in
missing_template'
答案 0 :(得分:0)
将插件复制到c:/redmine/plugins folder
转到运行命令行cd c:/redmine/plugins folder
运行命令
rake redmine:plugins:migrate RAILS_ENV=production