Browse Source

Updated cron example

Andrew Kane 8 năm trước cách đây
mục cha
commit
b840cd77ee
1 tập tin đã thay đổi với 9 bổ sung8 xóa
  1. 9 8
      README.md

+ 9 - 8
README.md

@@ -71,20 +71,21 @@ rake blazer:run_checks SCHEDULE="1 hour"
 rake blazer:run_checks SCHEDULE="1 day"
 ```
 
-Here’s what it looks like with cron.
-
-```
-*/5 * * * * * rake blazer:run_checks SCHEDULE="5 minutes"
-0   * * * * * rake blazer:run_checks SCHEDULE="1 hour"
-0   0 * * * * rake blazer:run_checks SCHEDULE="1 day"
-```
-
 You can also set up failing checks to be sent once a day (or whatever you prefer).
 
 ```sh
 rake blazer:send_failing_checks
 ```
 
+Here’s what it looks like with cron.
+
+```
+*/5 * * * * rake blazer:run_checks SCHEDULE="5 minutes"
+0   * * * * rake blazer:run_checks SCHEDULE="1 hour"
+30  7 * * * rake blazer:run_checks SCHEDULE="1 day"
+0   8 * * * rake blazer:send_failing_checks
+```
+
 ## Permissions
 
 ### PostgreSQL