ITPub博客

首页 > 应用开发 > IT综合 > 【Redmine】邮件触发以及附件图片预览,配置摘要

【Redmine】邮件触发以及附件图片预览,配置摘要

原创 IT综合 作者:penguin.23 时间:2017-08-11 15:43:55 0 删除 编辑
1、邮件触发,(前提已经做好Postfix的配置了)
   修改配置文件/var/www/redmine/config/configuration.yml
production:
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      address: 192.168.**.**
      port: 25
      authentication: :none
      enable_starttls_auto: false
      openssl_verify_mode: 'none'
     
    登录管理---邮件通知


2、配置让附件的图片可预览显示
     路径:/var/www/redmine/app/views/attachments/_links.html.erb

<% images = attachments.select { |a| a.image? } %>  
  
<% unless images.empty? %>  
 
<% images.each do |attachment| %>  
<%= link_to image_tag(url_for({:controller => 'attachments', :action => 'show', :id => attachment, :filename => attachment.filen
ame })),  
{:controller => 'attachments', :action => 'show', :id => attachment, :filename => attachment.filename }, :class => 'lightbox', :
rel => 'attachments', :title => "#{attachment.filename}#{ ('-' + attachment.description) unless attachment.description.blank? }"
 %>  
<% end -%>  
 
<% end -%>

3、删除Redmine插件
rake redmine:plugins:migrate NAME=redmine_todos VERSION=0 RAILS_ENV=production
移除插件的文件
mv plugins/redmine_todos/ /opt/
service redmine stop
service redmine start

4、定期给项目组成员发送任务list:

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/20659905/viewspace-2143405/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-05-12

  • 博文量
    64
  • 访问量
    176497