Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hayesgm/crontasks-for-opsworks
- Owner: hayesgm
- Created: 2014-01-17T07:43:57.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-17T11:14:00.000Z (almost 11 years ago)
- Last Synced: 2024-04-15T14:01:18.222Z (7 months ago)
- Language: Ruby
- Size: 172 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.