8
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Heroku Scheduler を 毎月 毎週で実行する

Posted at

こちらの記事が参考になる
https://blog.dbrgn.ch/2013/10/4/heroku-schedule-weekly-monthly-tasks/

毎週月曜実行

[ "$(date +%u)" = 1 ] && echo "happy monday"

毎月はじめに実行

[ "$(date +%d)" = 01 ] && echo "happy new month"

毎年 12/24 に実行

[ "$(date +%m)" = 12 ] && [ "$(date +%d)" = 24 ] && echo "happy holiday"
8
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?