Cron設定したりして別のコードを走らせるのは面倒。 なのでNode.jsの中でやることにした。 Node-cronというパッケージがあるのでこれを使う。 使うのは簡単 npm install node-cron をしておいて、 あとはapp.jsにでも以下を記述。毎日2時に一回実行される This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters