2008年8月8日 星期五

crontab enviroment problem

/usr/bin/env: ruby: No such file or directory
/usr/local/bin/ruby: No such file or directory -- .script/runner (LoadError)

http://www.hostingrails.com/forums/deployment_troubleshooting_thread/966

http://www.hostingrails.com/forums/deployment_troubleshooting_thread/49

0 11 * * * cd /home/yourname/your_rails_app/ ; /usr/local/bin/ruby script/runner -e production "ModelName.method_name"


ps:script/runner 裡可以改default 的environment

沒有留言: