Skip to content

grosser/travis_cron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated readme

Run travis as cron (also supports travis PRO)

Try locally:

cp config{.example,}.yml
# edit config.yml
bundle exec rake cron

Heroku

setup production section in config.yml

heroku create traviscron
rake heroku:configure           # copies config.yml into heroku ENV
git push heroku

# make sure everything is set up correctly
heroku run rake cron

configure scheduler

heroku addons:add scheduler
heroku addons:open scheduler

add bundle exec rake cron daily

Monitoring

  • Setup a dead man switch so you know the cron is still running and then change the cron to: bundle exec rake cron && curl https://nosnch.in/xxxxx
  • Setup a airbrake project to monitor errors and add :report_errors_to: to config.yml

Author

Michael Grosser michael@grosser.it
License: MIT
Build Status

About

Run travis as cron (also supports travis PRO)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages