Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

全部日志,缺少月报的过滤.. #13

Closed
youxiachai opened this issue Aug 5, 2013 · 7 comments
Closed

全部日志,缺少月报的过滤.. #13

youxiachai opened this issue Aug 5, 2013 · 7 comments

Comments

@youxiachai
Copy link
Contributor

竟然有月报类型..那么过滤的时候..不要漏了吧.我觉得这里的过滤用选择框吧..

@IceskYsl
Copy link
Owner

IceskYsl commented Aug 5, 2013

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

@net2817
Copy link

net2817 commented Sep 13, 2013

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

@IceskYsl
Copy link
Owner

$ 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

@net2817
Copy link

net2817 commented Sep 16, 2013

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

@IceskYsl
Copy link
Owner

@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

@net2817
Copy link

net2817 commented Sep 16, 2013

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会报以上错误。

@IceskYsl
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants