forked from frommww/iron_worker_examples
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating actionmailer_standalone example
- Loading branch information
Roman Dzvinkovsky
committed
Dec 13, 2012
1 parent
d0b4486
commit 04cedc5
Showing
5 changed files
with
23 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# action_mailer example | ||
|
||
This example shows how to send emails in worker. | ||
|
||
1. Be sure you've setup your Iron.io credentials, see main [README.md](https://github.com/iron-io/iron_worker_examples). | ||
2. Copy `actionmailer_config_sample.json` to `actionmailer_config.json` and edit it to set your gmail credentials. | ||
3. Run `iron_worker upload actionmailer_standalone` to upload worker. | ||
4. Run `iron_worker queue actionmailer_standalone --payload-file actionmailer_config.json` | ||
5. Look at [HUD](https://hud.iron.io) to view your tasks running, check logs, etc. | ||
|
||
Read the code in this directory to learn more about what happened. |
8 changes: 8 additions & 0 deletions
8
ruby_ng/actionmailer_standalone/actionmailer_config_sample.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"gmail": { | ||
"username": "you@gmail.com", | ||
"password": "yourpwd" | ||
}, | ||
"from": "you@gmail.com", | ||
"to": ["you@gmail.com"] | ||
} |
4 changes: 4 additions & 0 deletions
4
ruby_ng/actionmailer_standalone/actionmailer_standalone.worker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
exec 'actionmailer_worker.rb' | ||
file 'mailer.rb' | ||
dir 'mailer' | ||
gem 'actionmailer' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.