Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hayesgm/crontasks-for-opsworks

A simple recipe to set-up crontasks on AWS OpsWorks
https://github.com/hayesgm/crontasks-for-opsworks

Last synced: about 1 month ago
JSON representation

A simple recipe to set-up crontasks on AWS OpsWorks

Awesome Lists containing this project

README

        

# Crontasks for Opsworks

Then add a new layer `cronrunner` to your stack. Add `crontasks` as a custom deploy command in your `cronrunner` layer. You'll make a specific server run in two layers: it's orignal layer *and* cronrunner.

Next, add the following to your custom JSON:

"crontasks": {
"my-app": {
"some-cron-task": {
"layers": ["rails-app"],
"hour": "*",
"minute": "*",
"wd": "{app_root}",
"cmd": "RAILS_ENV={rails_env} bundle exec echo time >> {app_root}/time.out"
}
}
},

...

Now, when you deploy, that server will have the given crontask installed.