Giter Site home page Giter Site logo

octoquad / redmine_email_fetcher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dikoy/redmine_email_fetcher

1.0 1.0 1.0 70 KB

This Redmine plugin extends the Redmine receiving emails functionality by allowing the configuration of multiple email accounts and fetching e-mails periodically.

Ruby 72.24% HTML 20.19% JavaScript 6.90% CSS 0.67%
email plugin redmine

redmine_email_fetcher's People

Contributors

dikoy avatar luismaia avatar vohedge avatar

Stargazers

 avatar

Watchers

 avatar  avatar

redmine_email_fetcher's Issues

[help] Rake task problem

First of all, thanks for the plugin maintain.
It works fine, but i can't create correct cron rake task. I've try several ways. I don't know what else I can do.

Environment:
  Redmine version                4.0.4.stable
  Ruby version                   2.6.3-p62 (2019-04-16) [x86_64-linux]
  Rails version                  5.2.3
  Environment                    production
  Database adapter               PostgreSQL
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Git                            1.8.3.1
  Filesystem                     
Redmine plugins:
  redmine_email_fetcher          1.0.0

Redmine starts from redmine user.
Redmine home directory: /opt/redmine/redmine
Next command works fine from command line, and Redmine fetch emails:

[redmine@serv ~]$ cd /opt/redmine/redmine && /opt/redmine/redmine/bin/bundle exec /opt/redmine/redmine/bin/rake -f /opt/redmine/redmine/Rakefile --silent redmine:plugins:email_fetcher:fetch_all_emails RAILS_ENV=production 2>&- 1>&-

When I create crontab task - it does nothing, emails not fetch:

PATH=/opt/redmine/.rvm/gems/ruby-2.6.3/bin:/opt/redmine/.rvm/gems/ruby-2.6.3@global/bin:/opt/redmine/.rvm/rubies/ruby-2.6.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/redmine/.rvm/bin:/opt/redmine/.local/bin:/opt/redmine/bin
GEM_HOME=/opt/redmine/.rvm/gems/ruby-2.6.3
GEM_PATH=/opt/redmine/.rvm/gems/ruby-2.6.3:/opt/redmine/.rvm/gems/ruby-2.6.3@global
SHELL=/bin/bash

*/5 * * * *   cd /opt/redmine/redmine && /opt/redmine/redmine/bin/bundle exec /opt/redmine/redmine/bin/rake -f /opt/redmine/redmine/Rakefile --silent redmine:plugins:email_fetcher:fetch_all_emails RAILS_ENV=production 2>&- 1>&-

cron log file:
CROND[24985]: (redmine) CMD (cd /opt/redmine/redmine && /opt/redmine/redmine/bin/bundle exec /opt/redmine/redmine/bin/rake -f /opt/redmine/redmine/Rakefile --silent redmine:plugins:email_fetcher:fetch_all_emails RAILS_ENV=production 2>&- 1>&-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.