Giter Site home page Giter Site logo

Comments (7)

IceskYsl avatar IceskYsl commented on August 27, 2024

@youxiachai 好吧,只是我们暂时没月报,就没写~

from worklogs.

net2817 avatar net2817 commented on August 27, 2024

@IceskYsl 想问一下计划任务里怎么配置。

from worklogs.

IceskYsl avatar IceskYsl commented on August 27, 2024
$ cat /etc/cron.daily/week.sh
#!/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/ruby/bin
cd /opt/redmine/
RAILS_ENV=production bundle exec rake worklogs:day

from worklogs.

net2817 avatar net2817 commented on August 27, 2024

@IceskYsl 是不是指定为每天晚上11点执行一次就可以了。日报与周报不需要分别指定吗?还有怎么把配置接收这个工作日志人的邮件或指定人接收。

from worklogs.

IceskYsl avatar IceskYsl commented on August 27, 2024

@net2817 我刚修改了下项目的 readme,里面加入了添加定时任务的说明~

周报和日报的分开的两个 job,发送时间不一样,如下

[root@smbserver ~]# crontab -l
02 23 * * 1-5 /bin/bash -l -c  /shell/day.sh 
30 14 * * 0 /bin/bash -l -c  /shell/week.sh

from worklogs.

net2817 avatar net2817 commented on August 27, 2024

Could not find multi_json-1.8.0 in any of the sources
Run bundle install to install missing gems.

增加:PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/ruby/bin会报以上错误。

from worklogs.

IceskYsl avatar IceskYsl commented on August 27, 2024

@net2817 看下你自己的ruby路径,修改下~

from worklogs.

Related Issues (20)

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.