0

how can I create a scheduled task that replaces the root page by a static page at a certain time of day ?

I found this, that sound nice but I could not find something for heroku.

Community
  • 1
  • 1
user254197
  • 883
  • 2
  • 9
  • 31

1 Answers1

0

node-cron package helps you make scheduled tasks https://github.com/ncb000gt/node-cron

Heroku has background jobs, although it's can be pricey. https://devcenter.heroku.com/articles/background-jobs-queueing

File system access on heroku restricted for /tmp folder, may be this helps you How to use heroku's ephemeral filesystem

Community
  • 1
  • 1
vmkcom
  • 1,630
  • 11
  • 17