Rails ã§æ®æ®µéçºãããæ¹ã¯ã ruby script/console ã ruby script/runner ã¯é常ã«éå®ããã¦ããã¨æãã¾ãã ãããã®ã³ãã³ãã¯ãWeb ã¢ããªãä½æããããã«ä½ã£ã model ãã®ã¡ã½ããããç°¡åã« batch ã ã³ãã³ãã©ã¤ã³ã®ã¤ã³ã¿ã©ã¯ãã£ãã¢ããªã«å¤æ´ãããã¨ãåºæ¥ãcron åããããã°ã«å¤§å¤éå®ãã¾ãã ä»åããã® script/[hoge] ã«ãæ°ããªã¹ã¯ãªããã1ã¤è¿½å ãã¾ããã®ã§ãç´¹ä»ãããã¾ãã ä»éçºä¸ã®ã¢ããªã§ãããããããæ°ç§åä½ã§å®è¡ããå¿ è¦ãã§ã¦ãã¾ããã ããããå®æå®è¡ããã¨ããä¾ãã°ä¸è¨ã®ãããªã·ã§ã«ãã¡ã¤ã«ãä½æãã #!/bin/sh RUBY="/usr/local/bin/ruby" DATE=`date +"%Y%m%d"` cd [RAILS_ROOT] $RUBY script/runner
{{#tags}}- {{label}}
{{/tags}}