How do people deploy/version control cronjobs to production? I\'m more curious about conventions/standards people use than any particular solution, but I happen to be using git
Having your project under version control, including your crontab.txt, is what I prefer. Then, with Fabric, it is as simple as this:
@task
def crontab():
run('crontab deployment/crontab.txt')
This will install the contents of deployment/crontab.txt
to the crontab of the user you connect to the server. If you dont have your complete project on the server, you'd want to put
the crontab file first.