【Redmine】郵件觸發以及附件圖片預覽,配置摘要

penguin.23發表於2017-08-11
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部落格 ” ,連結:http://blog.itpub.net/20659905/viewspace-2143405/,如需轉載,請註明出處,否則將追究法律責任。

相關文章