Skip to content

Commit

Permalink
updating actionmailer_standalone example
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Dzvinkovsky committed Dec 13, 2012
1 parent d0b4486 commit 04cedc5
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 22 deletions.
11 changes: 11 additions & 0 deletions ruby_ng/actionmailer_standalone/README.md
@@ -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.
@@ -0,0 +1,8 @@
{
"gmail": {
"username": "you@gmail.com",
"password": "yourpwd"
},
"from": "you@gmail.com",
"to": ["you@gmail.com"]
}
@@ -0,0 +1,4 @@
exec 'actionmailer_worker.rb'
file 'mailer.rb'
dir 'mailer'
gem 'actionmailer'
8 changes: 0 additions & 8 deletions ruby_ng/actionmailer_standalone/enqueue.rb

This file was deleted.

14 changes: 0 additions & 14 deletions ruby_ng/actionmailer_standalone/upload.rb

This file was deleted.

0 comments on commit 04cedc5

Please sign in to comment.