From cf3f1a275c3cdda25f32b6ea728e1bf2fbea4aab Mon Sep 17 00:00:00 2001 From: Russell Brown Date: Sat, 26 Jun 2010 22:02:23 +0100 Subject: [PATCH] more R14A stuff and extra vars for mail. --- templates/mochi.erlgmail.cfg | 15 +++------------ templates/mochi.rebar.config | 2 -- templates/mochi.template | 2 +- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/templates/mochi.erlgmail.cfg b/templates/mochi.erlgmail.cfg index c269a92..abdb993 100644 --- a/templates/mochi.erlgmail.cfg +++ b/templates/mochi.erlgmail.cfg @@ -1,17 +1,8 @@ {default, [{host, "smtp.gmail.com"}, {port, 465}, - {username, "you@{{appid}}.cm"}, - {password, "changeit"}, + {username, "{{erlgmail_usr}}"}, + {password, "{{erlgmail_pass}}"}, {from, "you@{{appid}}.com"}, - {to, ["your@recipient.com"]}, - {header_to, ["your@recipient.com"]}] -}. - -{ {{appid}}, [{host, "smtp.gmail.com"}, - {port, 465}, - {username, "you@{{appid}}.cm"}, - {password, "changeit"}, - {from, "you@{{appid}}.com"}, - {to, ["your@recipient.com"]}, + {to, ["{{erlgmail_to}}"]}, {header_to, ["your@recipient.com"]}] }. diff --git a/templates/mochi.rebar.config b/templates/mochi.rebar.config index a811de8..36457e3 100644 --- a/templates/mochi.rebar.config +++ b/templates/mochi.rebar.config @@ -7,5 +7,3 @@ {mochiweb, "1.7.1", {git, "http://github.com/basho/mochiweb.git", "HEAD"}}]}. {sub_dirs, ["apps/erlydtl", "apps/mochiweb", "apps/tempile", "apps/erlgmail", "apps/{{appid}}", "rel"]}. - -{require_otp_vsn, "R13B04"}. \ No newline at end of file diff --git a/templates/mochi.template b/templates/mochi.template index 05c9422..740c422 100644 --- a/templates/mochi.template +++ b/templates/mochi.template @@ -1,4 +1,4 @@ -{variables, [{appid, "myapp"}, {nodeid, "mynode"}, {document_root, "site/www"}, {templates, "site/templates"}, {dev_path_prefix, "rel/overlay/"}, {erlgmail_conf, "etc/erlgmail.cfg"}]}. +{variables, [{appid, "myapp"}, {nodeid, "mynode"}, {document_root, "site/www"}, {templates, "site/templates"}, {dev_path_prefix, "rel/overlay/"}, {erlgmail_conf, "etc/erlgmail.cfg"}, {erlgmail_usr, "me@gmail.com"}, {erlgmail_pass, "password"}, {erlgmail_to, "mydefault@recipient"}]}. {template, "mochi.app", "apps/{{appid}}/ebin/{{appid}}.app"}. {template, "mochi_app.erl", "apps/{{appid}}/src/{{appid}}_app.erl"}. {template, "mochi_sup.erl", "apps/{{appid}}/src/{{appid}}_sup.erl"}.