Crontab耙工作不工作,每当gem在ruby [英] Crontab rake job is not working with whenever gem in ruby

查看:207
本文介绍了Crontab耙工作不工作,每当gem在ruby的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的crontab文件生成的任何时候:

This is my crontab file generated by whenever:

* * * * * /bin/bash -l -c 'cd /var/apps/path && RAILS_ENV=production echo "Testing" >> /new

* * * * * /bin/bash -l -c 'cd /var/apps/path && RAILS_ENV=production rake somegroup:rake_job --silent'

第一行仅用于测试,预期。然而,在其他线路的耙子工作根本没有任何作用。在/ var / log / syslog中,这两个作业都被执行。也尝试使用rake的绝对路径(/usr/local/rvm/gems/ruby-1.9.2-p136/bin/rake),仍然没有运气。不知道在哪里找到错误消息。我使用的是ubuntu 10.04TS服务器。

The first line is for test only and works as expected. However the rake job in the other line has nothing to do at all. In /var/log/syslog, both jobs are executed. Also tried using the absolute path of rake (/usr/local/rvm/gems/ruby-1.9.2-p136/bin/rake), still no luck. Don't know where to find error message. I'm using ubuntu 10.04TS server.

任何想法都将不胜感激! ;)

Any thoughts will be appreciated! ;)

J

推荐答案

是否使用rvm和gemsets?

are you using rvm and gemsets ?

我想我发现了Whenever和rvm的rvmrc文件有问题

I think I've found a problem with Whenever and rvm's rvmrc file

这篇关于Crontab耙工作不工作,每当gem在ruby的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆