Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add whenever for cron job

  • Loading branch information...
commit f9f786e760f0944ef280fe9822979d0fc2940cf8 1 parent 194de23
@flyerhzm authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 config/schedule.rb
View
14 config/schedule.rb
@@ -0,0 +1,14 @@
+# Use this file to easily define all of your cron jobs.
+#
+# It's helpful, but not entirely necessary to understand cron before proceeding.
+# http://en.wikipedia.org/wiki/Cron
+
+# Example:
+#
+# set :output, "/path/to/my/cron_log.log"
+#
+set :output, "/home/huangzhi/sites/rubyslide.com/production/shared/log/cron_log.log"
+
+every 12.hours, :at => "6:00" do
+ rake "slideshare"
+end
Please sign in to comment.
Something went wrong with that request. Please try again.