Permalink
Browse files

Added AWS poor man's support

  • Loading branch information...
1 parent 9a2fc34 commit f5e784f694b98d4f2d6a9eb9540d8c221cf65c7c @doubleyou committed Oct 12, 2012
Showing with 16 additions and 0 deletions.
  1. +3 −0 Makefile
  2. +3 −0 aws.sh
  3. +2 −0 priv/aws.cfg
  4. +8 −0 src/dps_aws.erl
View
@@ -27,6 +27,9 @@ test:
4:
erl -pa ebin -pa deps/*/ebin -s dps_example -sname node4
+aws: all
+ ./aws.sh
+
bench:
./rebar compile skip_deps=true
View
3 aws.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+erl -pa ebin -pa deps/*/ebin -s dps_aws -name dps@`hostname -i`
View
@@ -0,0 +1,2 @@
+'dps@10.83.63.150'.
+'dps@10.212.182.62'.
View
@@ -0,0 +1,8 @@
+-module(dps_aws).
+
+-export([start/0]).
+
+start() ->
+ {ok, Nodes} = file:consult("priv/aws.cfg"),
+ lists:map(fun net_adm:ping/1, Nodes),
+ application:start(dps).

0 comments on commit f5e784f

Please sign in to comment.