summaryrefslogtreecommitdiff
path: root/src/com/p4square/grow/GrowProcessComponent.java
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2014-05-24 01:21:26 -0700
committerJesse Morgan <jesse@jesterpm.net>2014-05-24 01:21:26 -0700
commit865adc8dac28310f2c2285343c168816643d171c (patch)
tree816de492443ad88ed79c891b52986c02a42e9d66 /src/com/p4square/grow/GrowProcessComponent.java
parentd90c6f8ef2c9b630a39f7e6cbf65897dc2f62011 (diff)
Adding serverprod target and import tool.
serverprod starts the frontend locally but points it to the prod dynamodb. The import tool loads data into dynamodb. Each record has a hash key and one or more attribute/value pairs. Records are separated by an empty line. The first line of the record is the hash key. Each subsequent line is an attribute key, followed by a space, followed by the value.
Diffstat (limited to 'src/com/p4square/grow/GrowProcessComponent.java')
-rw-r--r--src/com/p4square/grow/GrowProcessComponent.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/p4square/grow/GrowProcessComponent.java b/src/com/p4square/grow/GrowProcessComponent.java
index 7d0938e..9a7de6f 100644
--- a/src/com/p4square/grow/GrowProcessComponent.java
+++ b/src/com/p4square/grow/GrowProcessComponent.java
@@ -92,10 +92,15 @@ public class GrowProcessComponent extends Component {
// Load an optional config file from the first argument.
Config config = new Config();
config.setDomain("dev");
- if (args.length == 1) {
+ if (args.length >= 1) {
config.updateConfig(args[0]);
}
+ // Override domain
+ if (args.length == 2) {
+ config.setDomain(args[1]);
+ }
+
// Start the HTTP Server
final GrowProcessComponent component = new GrowProcessComponent(config);
component.getServers().add(Protocol.HTTP, 8085);